From: Nathan Lynch Date: Wed, 23 May 2007 00:51:25 +0000 (+1000) Subject: [POWERPC] Remove spinlock from struct cpu_purr_data X-Git-Tag: v2.6.23-rc1~767^2^2~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df211c8a478e16232ebbc16e650b19163183fcb6;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed