From patchwork Fri Sep 27 02:24:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 2952071 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C6EF1BFF0B for ; Fri, 27 Sep 2013 02:26:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D9AE20279 for ; Fri, 27 Sep 2013 02:26:34 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19D0C20274 for ; Fri, 27 Sep 2013 02:26:33 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VPNl0-0006D0-DC; Fri, 27 Sep 2013 02:26:14 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VPNkr-0002tq-Vr; Fri, 27 Sep 2013 02:26:06 +0000 Received: from mail-oa0-x22c.google.com ([2607:f8b0:4003:c02::22c]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VPNkd-0002pz-86 for linux-arm-kernel@lists.infradead.org; Fri, 27 Sep 2013 02:25:51 +0000 Received: by mail-oa0-f44.google.com with SMTP id l10so1655763oag.31 for ; Thu, 26 Sep 2013 19:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3wlQBNJerQnRRZ5UCjEe4r4ELHNcQGd4s8dmvw6IwTk=; b=eKV/sj2Lfayy2lEUS+HILqOnDuhhHtYpea1yZ2p30kzgkgKvZS4bgpBC9Z9u7+sEDh qk+bFvupK+Cj5UMsFS2pcVZvOhQ9Fe5gAh1tsXTT257XMiGV+7zLiPo1YDmgatUoPdIy BaDi4p/ddmmO9zYJ13UuHQ+mKCWJsU7xssYOjv+XqIAfLlR/o+gNhIawW/nTIAsf++ce HFvi3aR2Zb2NzS97kj2xBg5Q6qABTmD5gGVLTURL2rdLRfNCxDMbljaF07QeY6OL7WI8 CQFsKvmYnH1yt5E0CxxQfPRcx2UVRtoE4mIPRBHGrNq3HoBx6YM4A9QISREBG6Yo7x8d SIhQ== X-Received: by 10.60.96.131 with SMTP id ds3mr3613549oeb.50.1380248729913; Thu, 26 Sep 2013 19:25:29 -0700 (PDT) Received: from rob-laptop.grandenetworks.net (65-36-73-129.dyn.grandenetworks.net. [65.36.73.129]) by mx.google.com with ESMTPSA id b5sm7615423obj.8.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 19:25:29 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/6] cpuidle: calxeda: add cpu_pm_enter/exit calls Date: Thu, 26 Sep 2013 21:24:50 -0500 Message-Id: <1380248694-13388-3-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1380248694-13388-1-git-send-email-robherring2@gmail.com> References: <1380248694-13388-1-git-send-email-robherring2@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130926_222551_372634_C32AC93C X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) Cc: "Rafael J. Wysocki" , Daniel Lezcano , Rob Herring , linux-pm@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rob Herring Wnen powergating the core, we need to call cpu pm notifiers to save VFP state (!SMP only) and resetting the breakpoint h/w. Signed-off-by: Rob Herring Cc: "Rafael J. Wysocki" Cc: Daniel Lezcano Cc: linux-pm@vger.kernel.org Acked-by: Daniel Lezcano --- drivers/cpuidle/cpuidle-calxeda.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/cpuidle/cpuidle-calxeda.c b/drivers/cpuidle/cpuidle-calxeda.c index 01cfecf3..b04767a 100644 --- a/drivers/cpuidle/cpuidle-calxeda.c +++ b/drivers/cpuidle/cpuidle-calxeda.c @@ -21,6 +21,7 @@ */ #include +#include #include #include #include @@ -39,7 +40,10 @@ static int calxeda_pwrdown_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { + cpu_pm_enter(); cpu_suspend(0, calxeda_idle_finish); + cpu_pm_exit(); + return index; }