From: Tomas Hruby Date: Fri, 4 Nov 2011 17:47:45 +0000 (+0000) Subject: SMP - cpu_is_idle made volatile X-Git-Tag: v3.2.0~131 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=41bd5f2fc67982299f632adc6e5b6e6146212e97;p=minix.git SMP - cpu_is_idle made volatile --- diff --git a/kernel/cpulocals.h b/kernel/cpulocals.h index b12978a65..2f844f1b9 100644 --- a/kernel/cpulocals.h +++ b/kernel/cpulocals.h @@ -74,7 +74,7 @@ DECLARE_CPULOCAL(struct proc *, ptproc); /* CPU private run queues */ DECLARE_CPULOCAL(struct proc *, run_q_head[NR_SCHED_QUEUES]); /* ptrs to ready list headers */ DECLARE_CPULOCAL(struct proc *, run_q_tail[NR_SCHED_QUEUES]); /* ptrs to ready list tails */ -DECLARE_CPULOCAL(int, cpu_is_idle); /* let the others know that you are idle */ +DECLARE_CPULOCAL(volatile int, cpu_is_idle); /* let the others know that you are idle */ DECLARE_CPULOCAL(volatile int, idle_interrupted); /* to interrupt busy-idle while profiling */