[PATCH 48/74] GIC: Added dummy handlers for Power Management Suspend Resume
Russell King - ARM Linux
linux at arm.linux.org.uk
Thu Sep 2 06:23:23 EDT 2010
On Mon, Aug 30, 2010 at 04:09:12PM +0530, Viresh KUMAR wrote:
> From: Deepak Sikri <deepak.sikri at st.com>
>
The reason being?
> Signed-off-by: Deepak Sikri <deepak.sikri at st.com>
> Signed-off-by: Viresh Kumar <viresh.kumar at st.com>
> ---
> arch/arm/common/gic.c | 13 +++++++++++++
> 1 files changed, 13 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c
> index 7dfa9a8..e816ef1 100644
> --- a/arch/arm/common/gic.c
> +++ b/arch/arm/common/gic.c
> @@ -201,6 +201,18 @@ static void gic_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
> chip->unmask(irq);
> }
>
> +#ifdef CONFIG_PM
> +
> +static int gic_set_wake(unsigned int irq, unsigned int on)
> +{
> + return 0;
> +}
> +
> +#else
> +
> +#define gic_set_wake NULL
> +#endif
> +
> static struct irq_chip gic_chip = {
> .name = "GIC",
> .ack = gic_ack_irq,
> @@ -210,6 +222,7 @@ static struct irq_chip gic_chip = {
> #ifdef CONFIG_SMP
> .set_affinity = gic_set_cpu,
> #endif
> + .set_wake = gic_set_wake,
> };
>
> void __init gic_cascade_irq(unsigned int gic_nr, unsigned int irq)
> --
> 1.7.2.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
More information about the linux-arm-kernel
mailing list