mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 13:13:57 +08:00
6f84fa2f3e
This converts the i386 arch to use the generic timeofday subsystem. It enabled the GENERIC_TIME option, disables the timer_opts code and other arch specific timekeeping code and reworks the delay code. While this patch enables the generic timekeeping, please note that this patch does not provide any i386 clocksource. Thus only the jiffies clocksource will be available. To get full replacements for the code being disabled here, the timeofday-clocks-i386 patch will needed. Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
14 lines
297 B
C
14 lines
297 B
C
#ifndef _ASMi386_TIMER_H
|
|
#define _ASMi386_TIMER_H
|
|
#include <linux/init.h>
|
|
#include <linux/pm.h>
|
|
|
|
#define TICK_SIZE (tick_nsec / 1000)
|
|
void setup_pit_timer(void);
|
|
/* Modifiers for buggy PIT handling */
|
|
extern int pit_latch_buggy;
|
|
extern int timer_ack;
|
|
extern int recalibrate_cpu_khz(void);
|
|
|
|
#endif
|