mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
e1b4d11436
the RDC and ELAN platforms use slighly different PIT clocks, resulting in a timex.h hack that changes PIT_TICK_RATE during build time. But if a tester enables any of these platform support .config options, the PIT will be miscalibrated on standard PC platforms. So use one frequency - in a subsequent patch we'll add a quirk to allow x86 platforms to define different PIT frequencies. Signed-off-by: Ingo Molnar <mingo@elte.hu>
15 lines
286 B
C
15 lines
286 B
C
#ifndef _ASM_X86_TIMEX_H
|
|
#define _ASM_X86_TIMEX_H
|
|
|
|
#include <asm/processor.h>
|
|
#include <asm/tsc.h>
|
|
|
|
/* The PIT ticks at this frequency (in HZ): */
|
|
#define PIT_TICK_RATE 1193182
|
|
|
|
#define CLOCK_TICK_RATE PIT_TICK_RATE
|
|
|
|
#define ARCH_HAS_READ_CURRENT_TIMER
|
|
|
|
#endif /* _ASM_X86_TIMEX_H */
|