]> err.no Git - linux-2.6/commit
[IA64] reduce cacheline bouncing in cpu_idle_wait
authorZwane Mwaikambo <zwane@arm.linux.org.uk>
Thu, 31 Mar 2005 04:40:00 +0000 (21:40 -0700)
committerTony Luck <tony.luck@intel.com>
Tue, 3 May 2005 20:40:18 +0000 (13:40 -0700)
commit7d5f9c0f10255000ca007fb03773c6b825c2b9ce
tree5f53e41ef4cbe5ced2c5884ee5dde8df1fcaa509
parentde7548d0e202263bb6bfd7574a7889e85a691937
[IA64] reduce cacheline bouncing in cpu_idle_wait

Andi noted that during normal runtime cpu_idle_map is bounced around a lot,
and occassionally at a higher frequency than the timer interrupt wakeup
which we normally exit pm_idle from.  So switch to a percpu variable.

I didn't move things to the slow path because it would involve adding
scheduler code to wakeup the idle thread on the cpus we're waiting for.

Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/process.c