lkml.org 
[lkml]   [2009]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 04/38] device irq power management
    From: Heiko Carstens <heiko.carstens@de.ibm.com>

    On architectures without GENERIC_HARDIRQS there are no device irqs
    to suspend or resume. Add an #ifdef to replace suspend_device_irqs()
    and resume_device_irqs() with an empty inline function in that case.

    Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
    ---
    include/linux/interrupt.h | 8 +++++++-
    1 file changed, 7 insertions(+), 1 deletion(-)

    Index: linux-2.6/include/linux/interrupt.h
    ===================================================================
    --- linux-2.6.orig/include/linux/interrupt.h
    +++ linux-2.6/include/linux/interrupt.h
    @@ -183,9 +183,15 @@ extern void disable_irq(unsigned int irq
    extern void enable_irq(unsigned int irq);

    /* The following three functions are for the core kernel use only. */
    +#ifdef CONFIG_GENERIC_HARDIRQS
    extern void suspend_device_irqs(void);
    extern void resume_device_irqs(void);
    -#ifdef CONFIG_PM_SLEEP
    +#else
    +static inline void suspend_device_irqs(void) { }
    +static inline void resume_device_irqs(void) { }
    +#endif
    +
    +#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_GENERIC_HARDIRQS)
    extern int check_wakeup_irqs(void);
    #else
    static inline int check_wakeup_irqs(void) { return 0; }
    --
    blue skies,
    Martin.

    "Reality continues to ruin my life." - Calvin.



    \
     
     \ /
      Last update: 2009-06-04 18:33    [W:2.678 / U:0.396 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site