Merge "soc: qcom: irq-helper: Add header file of irq-helper"
This commit is contained in:
commit
21c2cba833
4 changed files with 24 additions and 1 deletions
|
@ -497,6 +497,7 @@ CONFIG_MSM_GLINK_PKT=y
|
||||||
CONFIG_MSM_SPM=y
|
CONFIG_MSM_SPM=y
|
||||||
CONFIG_QCOM_SCM=y
|
CONFIG_QCOM_SCM=y
|
||||||
CONFIG_QCOM_WATCHDOG_V2=y
|
CONFIG_QCOM_WATCHDOG_V2=y
|
||||||
|
CONFIG_QCOM_IRQ_HELPER=y
|
||||||
CONFIG_QCOM_MEMORY_DUMP_V2=y
|
CONFIG_QCOM_MEMORY_DUMP_V2=y
|
||||||
CONFIG_ICNSS=y
|
CONFIG_ICNSS=y
|
||||||
CONFIG_MSM_RUN_QUEUE_STATS=y
|
CONFIG_MSM_RUN_QUEUE_STATS=y
|
||||||
|
|
|
@ -512,6 +512,7 @@ CONFIG_MSM_GLINK_PKT=y
|
||||||
CONFIG_MSM_SPM=y
|
CONFIG_MSM_SPM=y
|
||||||
CONFIG_QCOM_SCM=y
|
CONFIG_QCOM_SCM=y
|
||||||
CONFIG_QCOM_WATCHDOG_V2=y
|
CONFIG_QCOM_WATCHDOG_V2=y
|
||||||
|
CONFIG_QCOM_IRQ_HELPER=y
|
||||||
CONFIG_QCOM_MEMORY_DUMP_V2=y
|
CONFIG_QCOM_MEMORY_DUMP_V2=y
|
||||||
CONFIG_ICNSS=y
|
CONFIG_ICNSS=y
|
||||||
CONFIG_MSM_GLADIATOR_ERP_V2=y
|
CONFIG_MSM_GLADIATOR_ERP_V2=y
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <linux/kobject.h>
|
#include <linux/kobject.h>
|
||||||
#include <linux/spinlock.h>
|
#include <linux/spinlock.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
|
#include <soc/qcom/irq-helper.h>
|
||||||
|
|
||||||
struct irq_helper {
|
struct irq_helper {
|
||||||
bool enable;
|
bool enable;
|
||||||
|
@ -161,7 +162,7 @@ static int __init irq_helper_init(void)
|
||||||
irq_h->enable = true;
|
irq_h->enable = true;
|
||||||
return 0;
|
return 0;
|
||||||
out_put_kobj:
|
out_put_kobj:
|
||||||
koject_put(&irq_h->kobj);
|
kobject_put(&irq_h->kobj);
|
||||||
out_free_irq:
|
out_free_irq:
|
||||||
kfree(irq_h);
|
kfree(irq_h);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
20
include/soc/qcom/irq-helper.h
Normal file
20
include/soc/qcom/irq-helper.h
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/* Copyright (c) 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __SOC_QCOM_IRQ_HELPER_H
|
||||||
|
#define __SOC_QCOM_IRQ_HELPER_H
|
||||||
|
|
||||||
|
int irq_blacklist_on(void);
|
||||||
|
int irq_blacklist_off(void);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue