mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
s2ram: add arch irq disable/enable hooks
After some more discussion this patch replaces it: From: Johannes Berg <johannes@sipsolutions.net> Subject: suspend: add arch irq disable/enable hooks For powermac, we need to do some things between suspending devices and device_power_off, for example setting the decrementer. This patch allows architectures to define arch_s2ram_{en,dis}able_irqs in their asm/suspend.h to have control over this step. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
075c177152
commit
a53c46dc82
2 changed files with 33 additions and 3 deletions
|
@ -166,6 +166,24 @@ extern struct pm_ops *pm_ops;
|
|||
extern int pm_suspend(suspend_state_t state);
|
||||
|
||||
|
||||
/**
|
||||
* arch_suspend_disable_irqs - disable IRQs for suspend
|
||||
*
|
||||
* Disables IRQs (in the default case). This is a weak symbol in the common
|
||||
* code and thus allows architectures to override it if more needs to be
|
||||
* done. Not called for suspend to disk.
|
||||
*/
|
||||
extern void arch_suspend_disable_irqs(void);
|
||||
|
||||
/**
|
||||
* arch_suspend_enable_irqs - enable IRQs after suspend
|
||||
*
|
||||
* Enables IRQs (in the default case). This is a weak symbol in the common
|
||||
* code and thus allows architectures to override it if more needs to be
|
||||
* done. Not called for suspend to disk.
|
||||
*/
|
||||
extern void arch_suspend_enable_irqs(void);
|
||||
|
||||
/*
|
||||
* Device power management
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue