x86, AMD: Set ARAT feature on AMD processors
authorBoris Ostrovsky <boris.ostrovsky@amd.com>
Tue, 15 Mar 2011 16:13:44 +0000 (12:13 -0400)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:42:11 +0000 (11:42 -0700)
commitbe0667384d7d9cb030bb4c908f86f7ab0ccbe9a8
treebd3e77dd3faca546ec05e17df6ed86e2ee9ca7c9
parente64c48ee3dc3107bbfca2b2d6c869fc22b0d7720
x86, AMD: Set ARAT feature on AMD processors

BugLink: http://bugs.launchpad.net/bugs/769042

commit b87cf80af3ba4b4c008b4face3c68d604e1715c6 upstream.

Support for Always Running APIC timer (ARAT) was introduced in
commit db954b5898dd3ef3ef93f4144158ea8f97deb058. This feature
allows us to avoid switching timers from LAPIC to something else
(e.g. HPET) and go into timer broadcasts when entering deep
C-states.

AMD processors don't provide a CPUID bit for that feature but
they also keep APIC timers running in deep C-states (except for
cases when the processor is affected by erratum 400). Therefore
we should set ARAT feature bit on AMD CPUs.

Tested-by: Borislav Petkov <borislav.petkov@amd.com>
Acked-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Acked-by: Mark Langsdorf <mark.langsdorf@amd.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
LKML-Reference: <1300205624-4813-1-git-send-email-ostr@amd64.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
arch/x86/kernel/cpu/amd.c