From patchwork Mon Mar 2 09:18:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 444980 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-lb0-x240.google.com (mail-lb0-x240.google.com [IPv6:2a00:1450:4010:c04::240]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 66E26140172 for ; Mon, 2 Mar 2015 20:18:27 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="2048-bit key; unprotected key" header.d=googlegroups.com header.i=@googlegroups.com header.b=YANBIF63; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: by lbiv13 with SMTP id v13sf1320666lbi.7 for ; Mon, 02 Mar 2015 01:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:content-type:precedence:mailing-list:list-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe; bh=R/XRD7LbKWuvY7GUuNawLNM6pAsj7Pvj6EXCA3jVWS8=; b=YANBIF63gmwIbew4o3ejPRMpHb5/RuZvx8oNKpBFPDFcbpfcS0SauYokw37Mn0PTwe 7xJ6mW088DvauU3lWfR4BV302oBRVb2YNT38HLAYmSKCUZ7B/9NkGheMDzz62D320oDL YenyKGPI3OXU3nv1uTATJdJAVYmSO/bpD3t1KcJEiwbrcZdkU3nU+dtZAHsMZfe9KpbX qlmoxVhWRqol5daqD5Dq5OSxn7eaX6NMUf/1oK3AqzcHA8Ie0krZ4F2dxKXfsDYwmMdo ZHp7Ls712j+Y+2v8KmTg8uyQRkhCjWq2vCJP2QCzAjaPeErcunqhJIXowmr2qVQ0bU97 wnSQ== X-Received: by 10.180.87.169 with SMTP id az9mr89649wib.0.1425287903294; Mon, 02 Mar 2015 01:18:23 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.180.97.105 with SMTP id dz9ls527005wib.4.gmail; Mon, 02 Mar 2015 01:18:22 -0800 (PST) X-Received: by 10.180.182.44 with SMTP id eb12mr2018793wic.4.1425287902911; Mon, 02 Mar 2015 01:18:22 -0800 (PST) Received: from mail.free-electrons.com (down.free-electrons.com. [37.187.137.238]) by gmr-mx.google.com with ESMTP id v5si134234wif.3.2015.03.02.01.18.22 for ; Mon, 02 Mar 2015 01:18:22 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning boris.brezillon@free-electrons.com does not designate 37.187.137.238 as permitted sender) client-ip=37.187.137.238; Received: by mail.free-electrons.com (Postfix, from userid 106) id 31259499; Mon, 2 Mar 2015 10:18:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (col31-4-88-188-83-94.fbx.proxad.net [88.188.83.94]) by mail.free-electrons.com (Postfix) with ESMTPSA id 14ECF1AA; Mon, 2 Mar 2015 10:18:23 +0100 (CET) From: Boris Brezillon To: Thomas Gleixner , Jason Cooper , Peter Zijlstra , Mark Rutland , "Rafael J. Wysocki" Cc: Len Brown , Pavel Machek , linux-pm@vger.kernel.org, Wim Van Sebroeck , linux-watchdog@vger.kernel.org, Alessandro Zummo , rtc-linux@googlegroups.com, Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, Mike Turquette , linux-kernel@vger.kernel.org, Nicolas Ferre , Jean-Christophe Plagniol-Villard , Alexandre Belloni , linux-arm-kernel@lists.infradead.org, Boris Brezillon Subject: [rtc-linux] [PATCH v2 1/6] PM / wakeup: export pm_system_wakeup symbol Date: Mon, 2 Mar 2015 10:18:13 +0100 Message-Id: <1425287898-15093-2-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425287898-15093-1-git-send-email-boris.brezillon@free-electrons.com> References: <1425287898-15093-1-git-send-email-boris.brezillon@free-electrons.com> X-Original-Sender: boris.brezillon@free-electrons.com X-Original-Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning boris.brezillon@free-electrons.com does not designate 37.187.137.238 as permitted sender) smtp.mail=boris.brezillon@free-electrons.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Export pm_system_wakeup function to allow irq handlers to deal with system wakeup. This is needed for shared IRQ lines where one of the handler is registered with IRQF_NO_SUSPEND, while the other ones want to configure it as a wakeup source. In this specific case, irq core does not handle the wakeup process and leave the decision to each irq handler. Signed-off-by: Boris Brezillon --- drivers/base/power/wakeup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index c2744b3..aab7158 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c @@ -730,6 +730,7 @@ void pm_system_wakeup(void) pm_abort_suspend = true; freeze_wake(); } +EXPORT_SYMBOL_GPL(pm_system_wakeup); void pm_wakeup_clear(void) {