x86: don't disable RDTSC in userland for 32bit notsc
authorAndi Kleen <ak@suse.de>
Wed, 30 Jan 2008 12:33:20 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:20 +0000 (13:33 +0100)
commit8424950b5e85543a494b5d940bb2f5f9f16f56a9
tree8dd3c32ef00aa15d2f6bb907ed2aadc2f8417412
parent135302577bb964ebf23376e2d991405ef4ff0457
x86: don't disable RDTSC in userland for 32bit notsc

Modern 32bit userland doesn't even boot when the TSC is disabled
because ld.so tends to contain RDTSCs.  So make notsc only effective for the
kernel, similar to 64bit.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/common.c