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: 2952081 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CFC5C9F244 for ; Fri, 27 Sep 2013 02:26:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0FEF720274 for ; Fri, 27 Sep 2013 02:26:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 32AAD2027D for ; Fri, 27 Sep 2013 02:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752340Ab3I0C0Q (ORCPT ); Thu, 26 Sep 2013 22:26:16 -0400 Received: from mail-oa0-f50.google.com ([209.85.219.50]:53523 "EHLO mail-oa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751361Ab3I0CZa (ORCPT ); Thu, 26 Sep 2013 22:25:30 -0400 Received: by mail-oa0-f50.google.com with SMTP id j1so1672418oag.9 for ; Thu, 26 Sep 2013 19:25:30 -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 Cc: Rob Herring , "Rafael J. Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.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> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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; }