time: move PIT_TICK_RATE to linux/timex.h
PIT_TICK_RATE is currently defined in four architectures, but in three different places. While linux/timex.h is not the perfect place for it, it is still a reasonable replacement for those drivers that traditionally use asm/timex.h to get CLOCK_TICK_RATE and expect it to be the PIT frequency. Note that for Alpha, the actual value changed from 1193182UL to 1193180UL. This is unlikely to make a difference, and probably can only improve accuracy. There was a discussion on the correct value of CLOCK_TICK_RATE a few years ago, after which every existing instance was getting changed to 1193182. According to the specification, it should be 1193181.818181... Signed-off-by:Arnd Bergmann <arnd@arndb.de> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Len Brown <lenb@kernel.org> Cc: john stultz <johnstul@us.ibm.com> Cc: Dmitry Torokhov <dtor@mail.ru> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/alpha/include/asm/8253pit.h 0 additions, 7 deletionsarch/alpha/include/asm/8253pit.h
- arch/alpha/kernel/sys_ruffian.c 1 addition, 0 deletionsarch/alpha/kernel/sys_ruffian.c
- arch/mips/include/asm/i8253.h 0 additions, 2 deletionsarch/mips/include/asm/i8253.h
- arch/powerpc/include/asm/8253pit.h 0 additions, 7 deletionsarch/powerpc/include/asm/8253pit.h
- arch/x86/include/asm/timex.h 1 addition, 3 deletionsarch/x86/include/asm/timex.h
- arch/x86/kernel/i8253.c 1 addition, 0 deletionsarch/x86/kernel/i8253.c
- arch/x86/kernel/tsc.c 1 addition, 0 deletionsarch/x86/kernel/tsc.c
- drivers/clocksource/acpi_pm.c 1 addition, 0 deletionsdrivers/clocksource/acpi_pm.c
- drivers/input/joystick/analog.c 1 addition, 1 deletiondrivers/input/joystick/analog.c
- drivers/input/misc/pcspkr.c 1 addition, 0 deletionsdrivers/input/misc/pcspkr.c
- include/linux/timex.h 3 additions, 0 deletionsinclude/linux/timex.h
- sound/drivers/pcsp/pcsp.h 1 addition, 0 deletionssound/drivers/pcsp/pcsp.h
- sound/oss/pas2_pcm.c 1 addition, 1 deletionsound/oss/pas2_pcm.c
Loading
Please register or sign in to comment