diff options
Diffstat (limited to 'arch/x86/kernel/process_32.c')
-rw-r--r-- | arch/x86/kernel/process_32.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c index a546f55c77b4..1a1ae8edc40c 100644 --- a/arch/x86/kernel/process_32.c +++ b/arch/x86/kernel/process_32.c | |||
@@ -66,9 +66,6 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork"); | |||
66 | DEFINE_PER_CPU(struct task_struct *, current_task) = &init_task; | 66 | DEFINE_PER_CPU(struct task_struct *, current_task) = &init_task; |
67 | EXPORT_PER_CPU_SYMBOL(current_task); | 67 | EXPORT_PER_CPU_SYMBOL(current_task); |
68 | 68 | ||
69 | DEFINE_PER_CPU(int, cpu_number); | ||
70 | EXPORT_PER_CPU_SYMBOL(cpu_number); | ||
71 | |||
72 | /* | 69 | /* |
73 | * Return saved PC of a blocked thread. | 70 | * Return saved PC of a blocked thread. |
74 | */ | 71 | */ |
@@ -111,7 +108,6 @@ void cpu_idle(void) | |||
111 | play_dead(); | 108 | play_dead(); |
112 | 109 | ||
113 | local_irq_disable(); | 110 | local_irq_disable(); |
114 | __get_cpu_var(irq_stat).idle_timestamp = jiffies; | ||
115 | /* Don't trace irqs off for idle */ | 111 | /* Don't trace irqs off for idle */ |
116 | stop_critical_timings(); | 112 | stop_critical_timings(); |
117 | pm_idle(); | 113 | pm_idle(); |
@@ -591,7 +587,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) | |||
591 | if (prev->gs | next->gs) | 587 | if (prev->gs | next->gs) |
592 | loadsegment(gs, next->gs); | 588 | loadsegment(gs, next->gs); |
593 | 589 | ||
594 | x86_write_percpu(current_task, next_p); | 590 | percpu_write(current_task, next_p); |
595 | 591 | ||
596 | return prev_p; | 592 | return prev_p; |
597 | } | 593 | } |