]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/platform/intel-mid: Remove custom TSC calibration
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 29 Jun 2018 19:31:12 +0000 (22:31 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 3 Jul 2018 11:08:21 +0000 (13:08 +0200)
commitd99e5da91b36db5c35ddaf3653b280ee060971da
treeef363bb4b801c96e006f75f3cbae52d8cb7e8d5c
parent5067b087cf5b2fa4de00443cdc6a66acb28a4953
x86/platform/intel-mid: Remove custom TSC calibration

Since the commit

  7da7c1561366 ("x86, tsc: Add static (MSR) TSC calibration on Intel Atom SoCs")

introduced a common way for all Intel MID chips to get their TSC frequency
via MSRs, there is no need to keep a duplication in each of Intel MID
platform code.

Thus, remove the custom calibration code for good.

Note, there is slight difference in how to get frequency for (reserved?)
values in MSRs, i.e. legacy code enforces some defaults while new code just
uses 0 in that cases.

Suggested-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Pavel Tatashin <pasha.tatashin@oracle.com>
Cc: Bin Gao <bin.gao@intel.com>
Link: https://lkml.kernel.org/r/20180629193113.84425-6-andriy.shevchenko@linux.intel.com
arch/x86/include/asm/intel-mid.h
arch/x86/kernel/tsc_msr.c
arch/x86/platform/intel-mid/intel-mid.c
arch/x86/platform/intel-mid/mfld.c
arch/x86/platform/intel-mid/mrfld.c