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: 1421041 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id CE5D140AB4 for ; Fri, 7 Sep 2012 10:19:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752949Ab2IGKTm (ORCPT ); Fri, 7 Sep 2012 06:19:42 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:46113 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760222Ab2IGKTk (ORCPT ); Fri, 7 Sep 2012 06:19:40 -0400 Received: by mail-bk0-f46.google.com with SMTP id j10so1284302bkw.19 for ; Fri, 07 Sep 2012 03:19:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=xMfnKAicX5YiV+fBaaD7WHUgOm1R4HBCtrwhfbLZ7Sw=; b=KVvRrS/fItw5JaxNYC1MR3J9MxnOXHoCtqto+kdCe3tnb4EEkEpYEP0qAFUOvoWVoQ KPydhY7iFK8idjIInAVPe1+EoPIRyMjg0z89FUQPcTMwR3bhm2XD4ljwhqg5aL4Z660D blzW7wihHyzE0hPmtPLzAFJ6CHtq5iRjnQJnBZnhDwExJhj3KeN6/21vDjDgg2U81DYz yzqqkt8hgHr7o052j4SLsrSyz7FBdXh3u6La1t2XJ5RRRClVsCVOZW8/vjCiqteufidu g0UawC2cD1AeOoxWFHZEuCI5+AF3qS45A3H9M9/SyVaitKGFo5jnY1XJvIQ447G0cVI7 uWLw== 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: ALoCoQkOWooeEdpnt2ofkxeiDlEEkwQWgVy1laOx78sCtzkJKKkE7XVPkKWMLA5fvfATxCp6kZn0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org 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);