aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-03-23 05:50:29 -0400
committerIngo Molnar <mingo@kernel.org>2015-03-23 05:50:29 -0400
commite1b63dec2ddba654c7ca75996284e453f32d1af7 (patch)
treec48fbfdb84b4e1b6b416b0e2ce7e14cd1350c5f5 /arch/x86/kernel/process.c
parentf8e617f4582995f7c25ef25b4167213120ad122b (diff)
parent746db9443ea57fd9c059f62c4bfbf41cf224fe13 (diff)
Merge branch 'sched/urgent' into sched/core, to pick up fixes before applying new patches
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r--arch/x86/kernel/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 6ad8a6396b75..a388bb883128 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -29,6 +29,7 @@
29#include <asm/fpu-internal.h> 29#include <asm/fpu-internal.h>
30#include <asm/debugreg.h> 30#include <asm/debugreg.h>
31#include <asm/nmi.h> 31#include <asm/nmi.h>
32#include <asm/tlbflush.h>
32 33
33/* 34/*
34 * per-CPU TSS segments. Threads are completely 'soft' on Linux, 35 * per-CPU TSS segments. Threads are completely 'soft' on Linux,
@@ -142,7 +143,7 @@ void flush_thread(void)
142 143
143static void hard_disable_TSC(void) 144static void hard_disable_TSC(void)
144{ 145{
145 write_cr4(read_cr4() | X86_CR4_TSD); 146 cr4_set_bits(X86_CR4_TSD);
146} 147}
147 148
148void disable_TSC(void) 149void disable_TSC(void)
@@ -159,7 +160,7 @@ void disable_TSC(void)
159 160
160static void hard_enable_TSC(void) 161static void hard_enable_TSC(void)
161{ 162{
162 write_cr4(read_cr4() & ~X86_CR4_TSD); 163 cr4_clear_bits(X86_CR4_TSD);
163} 164}
164 165
165static void enable_TSC(void) 166static void enable_TSC(void)