From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastian Hecht Date: Wed, 24 Oct 2012 08:54:15 +0000 Subject: [PATCH 0/3] Use generic helper scu_power_mode() Message-Id: <1351068858-7255-1-git-send-email-hechtb@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org The shmobile series implements its own code for setting the SCU power register of the ARM MPCore. It uses 32-bit wide access and thus needs locking as multiple CPUs might access it simultaneously for change. There is already a small helper function that avoids the overhead by using 8-bit wide access: As every CPU only accesses its own field we can drop the lock and use it. Bastian Hecht (3): ARM: shmobile: emev2: Replace modify_scu_cpu_psr with scu_power_mode ARM: shmobile: sh73a0: Replace modify_scu_cpu_psr with scu_power_mode ARM: shmobile: r8a7779: Replace modify_scu_cpu_psr with scu_power_mode arch/arm/mach-shmobile/smp-emev2.c | 22 ++-------------------- arch/arm/mach-shmobile/smp-r8a7779.c | 25 +++---------------------- arch/arm/mach-shmobile/smp-sh73a0.c | 23 ++--------------------- 3 files changed, 7 insertions(+), 63 deletions(-) -- 1.7.9.5