mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
powerpc/time: Remove generic_suspend_{dis/en}able_irqs()
Commit d75d68cfef
("powerpc: Clean up obsolete code relating to
decrementer and timebase") made generic_suspend_enable_irqs() and
generic_suspend_disable_irqs() static.
Fold them into their only caller.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c3f9ec9950394ef939014f7934268e6ee30ca04f.1630398566.git.christophe.leroy@csgroup.eu
This commit is contained in:
parent
566af8cda3
commit
e606a2f46c
@ -631,8 +631,12 @@ void timer_broadcast_interrupt(void)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SUSPEND
|
||||
static void generic_suspend_disable_irqs(void)
|
||||
/* Overrides the weak version in kernel/power/main.c */
|
||||
void arch_suspend_disable_irqs(void)
|
||||
{
|
||||
if (ppc_md.suspend_disable_irqs)
|
||||
ppc_md.suspend_disable_irqs();
|
||||
|
||||
/* Disable the decrementer, so that it doesn't interfere
|
||||
* with suspending.
|
||||
*/
|
||||
@ -642,23 +646,11 @@ static void generic_suspend_disable_irqs(void)
|
||||
set_dec(decrementer_max);
|
||||
}
|
||||
|
||||
static void generic_suspend_enable_irqs(void)
|
||||
{
|
||||
local_irq_enable();
|
||||
}
|
||||
|
||||
/* Overrides the weak version in kernel/power/main.c */
|
||||
void arch_suspend_disable_irqs(void)
|
||||
{
|
||||
if (ppc_md.suspend_disable_irqs)
|
||||
ppc_md.suspend_disable_irqs();
|
||||
generic_suspend_disable_irqs();
|
||||
}
|
||||
|
||||
/* Overrides the weak version in kernel/power/main.c */
|
||||
void arch_suspend_enable_irqs(void)
|
||||
{
|
||||
generic_suspend_enable_irqs();
|
||||
local_irq_enable();
|
||||
|
||||
if (ppc_md.suspend_enable_irqs)
|
||||
ppc_md.suspend_enable_irqs();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user