Skip to contentSkip to conversation

Use generic helper scu_power_mode()

PATCH In review Bastian Hecht 2 participants 3 messages Oct 24, 2012 – Oct 25, 2012 SuperH

lore
Share & tools
lore
#0 lore raw

cover Use generic helper scu_power_mode()

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(-)
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 6 lines · Bastian Hecht

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.

Hi Bastian,

thanks, these look good to me.
Would it be possible for you to repost them with [email protected] added to the CC list?

I realise this is a bit of a pain but I have been asked that patches appear there for review before I ask the arm-soc people to pull them.

#2 lore raw
In reply to Bastian Hecht

Hey Simon,

Quoted 7 lines

thanks, these look good to me.
Would it be possible for you to repost them with [email protected] added to the CC list?

I realise this is a bit of a pain but I have been asked that patches appear there for review before I ask the arm-soc people to pull them.

Oh yes, my bad! I've seen your announcement about the ARM mailing list some time ago. Will do.

cheers,

Bastian