irqchip: add snapshot of msm_show_resume_irq
This is a snapshot of drivers/irqchip/msm_show_resume_irq.c as of msm-3.18 commit <e17a72ad7344065> ("Merge "ARM: dts: mdm: Adjust memory region peripheral1_mem for MDM9640""). CRs-Fixed: 1033023 Change-Id: Ia928cf5e23eebc7a0f80638f4be81beec7ed2878 Signed-off-by: Runmin Wang <runminw@codeaurora.org> Signed-off-by: Kyle Yan <kyan@codeaurora.org>
This commit is contained in:
parent
149dce7c6c
commit
4689ca86b6
3 changed files with 34 additions and 1 deletions
|
@ -7,6 +7,7 @@ config ARM_GIC
|
|||
select IRQ_DOMAIN
|
||||
select IRQ_DOMAIN_HIERARCHY
|
||||
select MULTI_IRQ_HANDLER
|
||||
select QCOM_SHOW_RESUME_IRQ
|
||||
|
||||
config ARM_GIC_V2M
|
||||
bool
|
||||
|
@ -99,6 +100,16 @@ config BRCMSTB_L2_IRQ
|
|||
select GENERIC_IRQ_CHIP
|
||||
select IRQ_DOMAIN
|
||||
|
||||
config QCOM_SHOW_RESUME_IRQ
|
||||
bool "Enable logging of interrupts that could have caused resume"
|
||||
depends on ARM_GIC
|
||||
default n
|
||||
help
|
||||
This option logs wake up interrupts that have triggered just before
|
||||
the resume loop unrolls. It helps to debug to know any unnecessary
|
||||
wake up interrupts that causes system to come out of low power modes.
|
||||
Say Y if you want to debug why the system resumed.
|
||||
|
||||
config DW_APB_ICTL
|
||||
bool
|
||||
select GENERIC_IRQ_CHIP
|
||||
|
|
|
@ -55,4 +55,4 @@ obj-$(CONFIG_RENESAS_H8S_INTC) += irq-renesas-h8s.o
|
|||
obj-$(CONFIG_ARCH_SA1100) += irq-sa11x0.o
|
||||
obj-$(CONFIG_INGENIC_IRQ) += irq-ingenic.o
|
||||
obj-$(CONFIG_IMX_GPCV2) += irq-imx-gpcv2.o
|
||||
obj-$(CONFIG_MSM_SHOW_RESUME_IRQ) += msm_show_resume_irq.o
|
||||
obj-$(CONFIG_QCOM_SHOW_RESUME_IRQ) += msm_show_resume_irq.o
|
||||
|
|
22
drivers/irqchip/msm_show_resume_irq.c
Normal file
22
drivers/irqchip/msm_show_resume_irq.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
/* Copyright (c) 2011, 2014-2016 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
int msm_show_resume_irq_mask;
|
||||
|
||||
module_param_named(
|
||||
debug_mask, msm_show_resume_irq_mask, int, S_IRUGO | S_IWUSR | S_IWGRP
|
||||
);
|
Loading…
Add table
Reference in a new issue