From patchwork Fri Nov 22 00:41:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 21670 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6286523FF8 for ; Fri, 22 Nov 2013 00:42:13 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf1901363oag.9 for ; Thu, 21 Nov 2013 16:42:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=mjPMT0WUZmyHuAxZJEQ2wFQU842ZtXf9G0VC75tcjQg=; b=fgHTCimBIg5L5aHrBtl0DuC1U3obX+S6qgO8TcQ9Nov4RgFbNKh3SUfRI2Ip6S4b3T QHatPKuuhk04q4CwvJwGUTvqV+Mk1+sCgtfS0Ymg7UiHKrhloDPbfXdf5+kh+UAbQ3be G3vltReoQH0yWWLfY9pssDCn4CzVQzz4ovegqe/mAGTGyB54i3G/vM7huX/T3vFTeyXB zwLXrJMnUjK9T/fpvWktqw4CZuGZYN1Aaca4yXhlagHhZWsrEs7mdjblDJHiVU7mjQgv UYvFuou9Us/XWlT4/mtSZCF3HzZd8t/OcXoSmjLOKJ/N970xW/xIZuRquwj3b/xn/9ob lcWg== X-Gm-Message-State: ALoCoQmS3lacJeiioXVQDBn5i1wdKi+bhNClLSxdjHjRIzYAY2fcmY0JypDn2aw8NT/ZuhnV1L+9 X-Received: by 10.182.236.74 with SMTP id us10mr3247793obc.36.1385080933018; Thu, 21 Nov 2013 16:42:13 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.99 with SMTP id eh3ls770204qeb.68.gmail; Thu, 21 Nov 2013 16:42:12 -0800 (PST) X-Received: by 10.220.64.69 with SMTP id d5mr8593671vci.11.1385080932686; Thu, 21 Nov 2013 16:42:12 -0800 (PST) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id m10si11613026vcm.132.2013.11.21.16.42.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 16:42:12 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id lc6so384889vcb.13 for ; Thu, 21 Nov 2013 16:42:12 -0800 (PST) X-Received: by 10.58.217.130 with SMTP id oy2mr5405194vec.24.1385080932583; Thu, 21 Nov 2013 16:42:12 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp2865vcz; Thu, 21 Nov 2013 16:42:12 -0800 (PST) X-Received: by 10.66.197.164 with SMTP id iv4mr9284431pac.18.1385080931551; Thu, 21 Nov 2013 16:42:11 -0800 (PST) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx.google.com with ESMTPS id gn4si18225019pbc.321.2013.11.21.16.42.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 16:42:11 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.41 is neither permitted nor denied by best guess record for domain of al.stone@linaro.org) client-ip=209.85.160.41; Received: by mail-pb0-f41.google.com with SMTP id jt11so534951pbb.14 for ; Thu, 21 Nov 2013 16:42:11 -0800 (PST) X-Received: by 10.66.159.193 with SMTP id xe1mr5994838pab.166.1385080931174; Thu, 21 Nov 2013 16:42:11 -0800 (PST) Received: from fidelio.ahs3.com (74-93-232-46-Colorado.hfc.comcastbusiness.net. [74.93.232.46]) by mx.google.com with ESMTPSA id pl1sm48881461pbb.20.2013.11.21.16.42.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Nov 2013 16:42:10 -0800 (PST) From: al.stone@linaro.org To: linux-acpi@vger.kernel.org Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org, Al Stone Subject: [PATCH v2 2/6] ACPI: bus master reload not supported in reduced HW mode Date: Thu, 21 Nov 2013 17:41:51 -0700 Message-Id: <1385080915-23430-3-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1385080915-23430-1-git-send-email-al.stone@linaro.org> References: <1385080915-23430-1-git-send-email-al.stone@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: al.stone@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 597cdab..b18e7ab 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,11 @@ void acpi_processor_syscore_exit(void) { unregister_syscore_ops(&acpi_processor_syscore_ops); } -#endif /* CONFIG_PM_SLEEP */ +#else +/* Bus master reload is not supported in reduced HW mode. */ +static int acpi_processor_suspend(void) { return 0; } +static void acpi_processor_resume(void) { return; } +#endif #if defined(CONFIG_X86) static void tsc_check_state(int state)