From patchwork Fri Sep 7 10:19:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 11228 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 77A0B23E41 for ; Fri, 7 Sep 2012 10:19:42 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2A816A18D95 for ; Fri, 7 Sep 2012 10:19:42 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id k11so4429471iea.11 for ; Fri, 07 Sep 2012 03:19:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=xMfnKAicX5YiV+fBaaD7WHUgOm1R4HBCtrwhfbLZ7Sw=; b=ZaQNhmS39lX2TzUHP7N0w/WpvMnx8W3wbWxulwejSldCOZIIjyJHya8RcjvxXhWJCc qT/xffOnKBPcfql2+RaPT8RIA5+NYyjt8cyOl3Q/gW+5f23FXcYFmoMGPozkNQ546ut/ 7BS5wUi1ru9HVNOn+lSRxuWLtL6Lt+sj6lvQ3dKcIWQYrtnq51oO2WjfIYKutN7xo+0v q0sv9qogRGlJOfbwkIWalnF70LgEvdSQsEWBDlCSVURocBEp8tDNgweqBBTXFe+4aL0Z A2VA2Mn+azSGcRS2y5hQC2RqpTtz3Zk6lTl/gq9a7DpCBbAnjLN7B+Ii8PniI9TTh8/9 utNQ== Received: by 10.42.109.194 with SMTP id m2mr6199143icp.48.1347013181884; Fri, 07 Sep 2012 03:19:41 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp371135igc; Fri, 7 Sep 2012 03:19:41 -0700 (PDT) Received: by 10.204.156.87 with SMTP id v23mr2424914bkw.0.1347013180082; Fri, 07 Sep 2012 03:19:40 -0700 (PDT) Received: from mail-bk0-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) by mx.google.com with ESMTPS id hy16si4637905bkc.57.2012.09.07.03.19.39 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Sep 2012 03:19:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=209.85.214.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-bk0-f50.google.com with SMTP id j5so1367058bkw.37 for ; Fri, 07 Sep 2012 03:19:39 -0700 (PDT) Received: by 10.205.118.14 with SMTP id fo14mr2400757bkc.130.1347013179398; Fri, 07 Sep 2012 03:19:39 -0700 (PDT) Received: from localhost.localdomain (AToulouse-651-1-16-21.w92-149.abo.wanadoo.fr. [92.149.191.21]) by mx.google.com with ESMTPS id n5sm3018481bkv.14.2012.09.07.03.19.37 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Sep 2012 03:19:38 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, lenb@kernel.org Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, patches@linaro.org, linaro-dev@lists.linaro.org, pdeschrijver@nvidia.com, lorenzo.pieralisi@arm.com Subject: [PATCH 1/6] acpi : move the acpi_idle_driver variable declaration Date: Fri, 7 Sep 2012 12:19:27 +0200 Message-Id: <1347013172-12465-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1347013172-12465-1-git-send-email-daniel.lezcano@linaro.org> References: <1347013172-12465-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQmSPxnR9i/AXuUhqOITXRAG5yQ0y+/CwO9z7X84SXwAPWvnH9DKpfBZy1QWj+qawIySSiCm This variable is only used in the in processor_driver.c. This patch reduces the scope of the variable by moving it to this file. Signed-off-by: Daniel Lezcano Acked-by: Peter De Schrijver Tested-by: Peter De Schrijver --- drivers/acpi/processor_driver.c | 2 +- include/acpi/processor.h | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index bfc31cb..e1f6330 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c @@ -113,7 +113,7 @@ static struct acpi_driver acpi_processor_driver = { DEFINE_PER_CPU(struct acpi_processor *, processors); EXPORT_PER_CPU_SYMBOL(processors); - +extern struct cpuidle_driver acpi_idle_driver; struct acpi_processor_errata errata __read_mostly; /* -------------------------------------------------------------------------- diff --git a/include/acpi/processor.h b/include/acpi/processor.h index db427fa..8b2c39a 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -332,7 +332,6 @@ int acpi_processor_power_exit(struct acpi_processor *pr, struct acpi_device *device); int acpi_processor_suspend(struct device *dev); int acpi_processor_resume(struct device *dev); -extern struct cpuidle_driver acpi_idle_driver; /* in processor_thermal.c */ int acpi_processor_get_limit_info(struct acpi_processor *pr);