diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-09-09 01:26:15 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-09 01:26:15 -0700 |
| commit | 3dc7ca5e82cc56abc0463e35f1851cd8e2eed97a (patch) | |
| tree | 38691108d2ab615b612c1d7ab61e22b8c45e229e | |
| parent | ea31f5c96530ae9b64ca2a649520f66aa5ae1911 (diff) | |
| parent | e7549a9c25eed8fcb5735a40e289b35fa38c4ac8 (diff) | |
Merge "soc: qcom: irq-helper: Add comments to exposed APIs"
| -rw-r--r-- | drivers/soc/qcom/irq-helper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/soc/qcom/irq-helper.c b/drivers/soc/qcom/irq-helper.c index 7bb371f7991e..370801291230 100644 --- a/drivers/soc/qcom/irq-helper.c +++ b/drivers/soc/qcom/irq-helper.c @@ -78,10 +78,12 @@ IRQ_HELPER_ATTR(irq_blacklist_on, 0444, show_deploy, NULL); static struct irq_helper *irq_h; +/* Do not call this API in an atomic context */ int irq_blacklist_on(void) { bool flag = false; + might_sleep(); if (!irq_h) { pr_err("%s: init function is not called", __func__); return -EPERM; @@ -103,10 +105,12 @@ int irq_blacklist_on(void) } EXPORT_SYMBOL(irq_blacklist_on); +/* Do not call this API in an atomic context */ int irq_blacklist_off(void) { bool flag = false; + might_sleep(); if (!irq_h) { pr_err("%s: init function is not called", __func__); return -EPERM; |
