]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Remove spinlock from struct cpu_purr_data
authorNathan Lynch <ntl@pobox.com>
Wed, 23 May 2007 00:51:25 +0000 (10:51 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 25 Jun 2007 06:58:11 +0000 (16:58 +1000)
commitdf211c8a478e16232ebbc16e650b19163183fcb6
tree90972e63f445e0edad7a195a025ad3fffa9283f3
parent1a06e0fe96526e43bab90fbab2263b55fb3d45d1
[POWERPC] Remove spinlock from struct cpu_purr_data

cpu_purr_data is a per-cpu array used to account for stolen time on
partitioned systems.  It used to be the case that cpus accessed each
others' cpu_purr_data, so each entry was protected by a spinlock.

However, the code was reworked ("Simplify stolen time calculation")
with the result that each cpu accesses its own cpu_purr_data and not
those of other cpus.  This means we can get rid of the spinlock as
long as we're careful to disable interrupts when accessing
cpu_purr_data in process context.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/time.c