Add comments and might_sleep() to warn that irq_blacklist_on/off
APIs should not be called in atomic context.
CRs-Fixed:
1063719
Change-Id: Ie6858243a666aeb21cc486208b9dd8221e9ad674
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
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;
}
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;