diff options
author | Nathan Lynch <ntl@pobox.com> | 2007-05-23 10:51:25 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-25 16:58:11 +1000 |
commit | df211c8a478e16232ebbc16e650b19163183fcb6 (patch) | |
tree | 90972e63f445e0edad7a195a025ad3fffa9283f3 /security | |
parent | 1a06e0fe96526e43bab90fbab2263b55fb3d45d1 (diff) | |
download | kernel-common-df211c8a478e16232ebbc16e650b19163183fcb6.tar.gz kernel-common-df211c8a478e16232ebbc16e650b19163183fcb6.tar.bz2 kernel-common-df211c8a478e16232ebbc16e650b19163183fcb6.zip |
[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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions