android_kernel_google_msm/arch
David Woodhouse 2bba66d6ae x86/platform: Fix Geode LX timekeeping in the generic x86 build
commit 03da3ff1cfcd7774c8780d2547ba0d995f7dc03d upstream.

In 2007, commit 07190a08ee ("Mark TSC on GeodeLX reliable")
bypassed verification of the TSC on Geode LX. However, this code
(now in the check_system_tsc_reliable() function in
arch/x86/kernel/tsc.c) was only present if CONFIG_MGEODE_LX was
set.

OpenWRT has recently started building its generic Geode target
for Geode GX, not LX, to include support for additional
platforms. This broke the timekeeping on LX-based devices,
because the TSC wasn't marked as reliable:
https://dev.openwrt.org/ticket/20531

By adding a runtime check on is_geode_lx(), we can also include
the fix if CONFIG_MGEODEGX1 or CONFIG_X86_GENERIC are set, thus
fixing the problem.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: Andres Salomon <dilinger@queued.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Marcelo Tosatti <marcelo@kvack.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1442409003.131189.87.camel@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-04-27 18:55:19 +08:00
..
alpha PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2015-06-19 11:40:34 +08:00
arm ARM: fix Thumb2 signal handling when ARMv6 is enabled 2016-04-27 18:55:19 +08:00
avr32 vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
blackfin
c6x C6x: time: Ensure consistency in __init 2015-09-18 09:20:25 +08:00
cris vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
frv vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
h8300 signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer 2013-04-05 10:04:14 -07:00
hexagon
ia64 vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
m32r vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
m68k vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
microblaze vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
mips MIPS: Make set_pte() SMP safe. 2016-03-21 09:17:51 +08:00
mn10300 vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
openrisc vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
parisc vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
powerpc powerpc/MSI: Fix race condition in tearing down MSI interrupts 2016-04-27 18:55:19 +08:00
s390 s390/process: fix sfpc inline assembly 2016-03-21 09:17:43 +08:00
score vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
sh vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
sparc PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2015-06-19 11:40:34 +08:00
tile tile: use free_bootmem_late() for initrd 2016-03-21 09:17:47 +08:00
um vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
unicore32 UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer 2014-09-25 11:49:18 +08:00
x86 x86/platform: Fix Geode LX timekeeping in the generic x86 build 2016-04-27 18:55:19 +08:00
xtensa vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
.gitignore
Kconfig