]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
x86/timers: Move the simple udelay calibration to tsc.h
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Fri, 14 Jul 2017 03:34:06 +0000 (11:34 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 25 Sep 2017 13:22:44 +0000 (15:22 +0200)
commiteb496063c9904ce682253ee445b9acb9b6257581
tree7a9326a2c5a6f14afcf613fba6d7ec26c4ff3d30
parente19b205be43d11bff638cad4487008c48d21c103
x86/timers: Move the simple udelay calibration to tsc.h

Commit dd759d93f4dd ("x86/timers: Add simple udelay calibration") adds
an static function in x86 boot-time initializations.

But, this function is actually related to TSC, so it should be maintained
in tsc.c, not in setup.c.

Move simple_udelay_calibration() from setup.c to tsc.c and rename it to
tsc_early_delay_calibrate for more readability.

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1500003247-17368-1-git-send-email-douly.fnst@cn.fujitsu.com
arch/x86/include/asm/tsc.h
arch/x86/kernel/setup.c
arch/x86/kernel/tsc.c