From patchwork Wed Dec 4 21:22:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: al.stone@linaro.org X-Patchwork-Id: 3285371 Return-Path: X-Original-To: patchwork-linux-arm@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 129089F37A for ; Wed, 4 Dec 2013 21:23:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8CE7204FB for ; Wed, 4 Dec 2013 21:23:25 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 723BD201D5 for ; Wed, 4 Dec 2013 21:23:24 +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 1VoJuO-0007l4-0d; Wed, 04 Dec 2013 21:23:00 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VoJuI-0001Si-Us; Wed, 04 Dec 2013 21:22:54 +0000 Received: from mail-ie0-f181.google.com ([209.85.223.181]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VoJu5-0001Pe-08 for linux-arm-kernel@lists.infradead.org; Wed, 04 Dec 2013 21:22:41 +0000 Received: by mail-ie0-f181.google.com with SMTP id e14so26718025iej.26 for ; Wed, 04 Dec 2013 13:22:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MVXr3yLaLBA7d28j1pWeYGvHlo6eKrGiPO88DdkgbiQ=; b=Wql0tEu/yqN8NIPBVcKd7hU2DLCFBGXGRo+KhUc5C+ZGxvXV9Zw2/zIM5QeJL13Ocs N3H6/3dEHA1glmlysqQKgiog0R5LJp9RlJuHwKsFvOXcwsLDZAz8CBjtgWJ9wALi30Zo HFOsw5JFNEN5h0klGK4znbgDEvpIUFbXcE5VmFCISas4UdOacJcunMLOob3GdwMjJXJq Y3hJDYzn7eTBjPUJOMkwP4NWSZ+fLNZHbPuTqNGWm5mRK5qhWDkPmfq0SsMp3ckcbQN8 CZuGoSeV6XtdaqtKHbNvinBprjHO/K6d3POSLUbtm8ibc6NxCO06ar1OdXgNc13xJZYo T13w== X-Gm-Message-State: ALoCoQnZ8avwygxd8t0lldBYzAWEKXZowLQBGX9+ND4FQBT2Som0329WWomttUI4ziEfZQajh42H X-Received: by 10.50.176.201 with SMTP id ck9mr2930659igc.46.1386192139923; Wed, 04 Dec 2013 13:22:19 -0800 (PST) Received: from fidelio.ahs3 (74-93-232-46-Colorado.hfc.comcastbusiness.net. [74.93.232.46]) by mx.google.com with ESMTPSA id f5sm6351925igc.4.2013.12.04.13.22.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2013 13:22:19 -0800 (PST) From: al.stone@linaro.org To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/5] ACPI: bus master reload not supported in reduced HW mode Date: Wed, 4 Dec 2013 14:22:04 -0700 Message-Id: <1386192127-28564-3-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1386192127-28564-1-git-send-email-al.stone@linaro.org> References: <1386192127-28564-1-git-send-email-al.stone@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131204_162241_101416_6587C641 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) Cc: patches@linaro.org, Al Stone , linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.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=-1.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, SUSPICIOUS_RECIPS, UNPARSEABLE_RELAY autolearn=no 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: Al Stone Remove the saving and restoring of bus master reload registers in suspend/resume when in reduced HW mode; according to the spec, no such registers should exist Signed-off-by: Al Stone --- drivers/acpi/processor_idle.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 597cdab..8b48c08 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -202,7 +202,7 @@ static void lapic_timer_state_broadcast(struct acpi_processor *pr, #endif -#ifdef CONFIG_PM_SLEEP +#if (IS_ENABLED(CONFIG_PM_SLEEP) && !IS_ENABLED(CONFIG_ACPI_REDUCED_HARDWARE)) static u32 saved_bm_rld; static int acpi_processor_suspend(void) @@ -236,7 +236,10 @@ void acpi_processor_syscore_exit(void) { unregister_syscore_ops(&acpi_processor_syscore_ops); } -#endif /* CONFIG_PM_SLEEP */ +#else +void acpi_processor_syscore_init(void) { return; } +void acpi_processor_syscore_exit(void) { return; } +#endif #if defined(CONFIG_X86) static void tsc_check_state(int state)