aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5dbc42694477..f8d540b324ca 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4152,7 +4152,7 @@ EXPORT_SYMBOL(yield);
4152 */ 4152 */
4153void __sched io_schedule(void) 4153void __sched io_schedule(void)
4154{ 4154{
4155 struct runqueue *rq = &per_cpu(runqueues, raw_smp_processor_id()); 4155 struct runqueue *rq = &__raw_get_cpu_var(runqueues);
4156 4156
4157 atomic_inc(&rq->nr_iowait); 4157 atomic_inc(&rq->nr_iowait);
4158 schedule(); 4158 schedule();
@@ -4163,7 +4163,7 @@ EXPORT_SYMBOL(io_schedule);
4163 4163
4164long __sched io_schedule_timeout(long timeout) 4164long __sched io_schedule_timeout(long timeout)
4165{ 4165{
4166 struct runqueue *rq = &per_cpu(runqueues, raw_smp_processor_id()); 4166 struct runqueue *rq = &__raw_get_cpu_var(runqueues);
4167 long ret; 4167 long ret;
4168 4168
4169 atomic_inc(&rq->nr_iowait); 4169 atomic_inc(&rq->nr_iowait);