]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7176/1: cpu_pm: register GIC PM notifier only once
authorMarc Zyngier <Marc.Zyngier@arm.com>
Fri, 25 Nov 2011 16:58:19 +0000 (17:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Nov 2011 21:58:54 +0000 (21:58 +0000)
commit65da0afb5d78660b84e99bd0a5ae6f8cdf9bcc31
tree550afb8ca098ee480137eb6f63e04035d90cd69a
parent920b697fc7d614b42a86a74488027e45574315bc
ARM: 7176/1: cpu_pm: register GIC PM notifier only once

When multiple GICs exist on a platform (RealView PB1176/11MP),
we must make sure the PM notifier block is only registered
once, otherwise we end up corrupting the PM notifier list.

The fix is to only register the notifier when initializing
the first GIC, as the power management functions seem
to iterate over all the registered GICs.

Tested on PB11MP and PB1176.

Reported-by: Will Deacon <will.deacon@arm.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Cc: Colin Cross <ccross@android.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/gic.c