mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
irqchip: add snapshot of msm_show_resume_irq
This is a snapshot of drivers/irqchip/msm_show_resume_irq.c as of msm-4.14 commit <02ff79e55ddc0aa>. (Merge "perf: don't zombie certain events in perf_event_release_kernel"). Change-Id: I8d33455c9f482b5742023042e947f0af3d3c2335 Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org> [rananta@codeaurora.org: Altered the configuration option] Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
This commit is contained in:
parent
91553bb268
commit
de3ae69c8a
3 changed files with 24 additions and 0 deletions
|
|
@ -145,6 +145,16 @@ config DAVINCI_CP_INTC
|
|||
select GENERIC_IRQ_CHIP
|
||||
select IRQ_DOMAIN
|
||||
|
||||
config QCOM_SHOW_RESUME_IRQ
|
||||
tristate "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
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ obj-$(CONFIG_ARCH_SA1100) += irq-sa11x0.o
|
|||
obj-$(CONFIG_INGENIC_IRQ) += irq-ingenic.o
|
||||
obj-$(CONFIG_INGENIC_TCU_IRQ) += irq-ingenic-tcu.o
|
||||
obj-$(CONFIG_IMX_GPCV2) += irq-imx-gpcv2.o
|
||||
obj-$(CONFIG_QCOM_SHOW_RESUME_IRQ) += msm_show_resume_irq.o
|
||||
obj-$(CONFIG_PIC32_EVIC) += irq-pic32-evic.o
|
||||
obj-$(CONFIG_MSCC_OCELOT_IRQ) += irq-mscc-ocelot.o
|
||||
obj-$(CONFIG_MVEBU_GICP) += irq-mvebu-gicp.o
|
||||
|
|
|
|||
13
drivers/irqchip/msm_show_resume_irq.c
Normal file
13
drivers/irqchip/msm_show_resume_irq.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2011, 2014-2016, 2018, 2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#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, 0664);
|
||||
Loading…
Reference in a new issue