From patchwork Wed Jul 25 10:45:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 1236281 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 C1DB03FDFB for ; Wed, 25 Jul 2012 10:46:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756458Ab2GYKqK (ORCPT ); Wed, 25 Jul 2012 06:46:10 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:49251 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756403Ab2GYKqI (ORCPT ); Wed, 25 Jul 2012 06:46:08 -0400 Received: by bkwj10 with SMTP id j10so402048bkw.19 for ; Wed, 25 Jul 2012 03:46:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=xM9Wy4yvsWG98pokEkKpX7dvu6W7T4UfpjBje4ZbaPw=; b=o1RfWlV7b1swCZxH5JLosy/20dLWdcr6OLl3rTI0i+lERNafGrfqbkg/D0u26zJ51J uqyrxyoq+TP4DTjJym5KL016C9ACvzwLXzQ+QB/DFSYFT5wsWvZhxkbIsHNiZo10wjHJ jAujMr67NSaCsg4Rclj5dI2OMpWD9Y5AdkzfCfCYuyyYB6/Fdi/qqKTJF7aOLTfWidIV sMM+gFGomnixn/32iLS5pgP/LymS7R1HJgX+AKwUBBT/HODPuircEDIFOGDafVMuqOqx ceZJJy6B/7GfQ7T22xfk2V0uHN9Y43jkPV/rNWv6pmFQ2x5Ls9jy1OSfiS6KJzTO+hBL DUpQ== Received: by 10.205.133.11 with SMTP id hw11mr12114864bkc.46.1343213167133; Wed, 25 Jul 2012 03:46:07 -0700 (PDT) Received: from localhost.localdomain (AToulouse-159-1-76-78.w92-134.abo.wanadoo.fr. [92.134.219.78]) by mx.google.com with ESMTPS id z19sm12485781bkw.10.2012.07.25.03.46.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jul 2012 03:46:06 -0700 (PDT) From: Daniel Lezcano To: linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, linaro-dev@lists.linaro.org Subject: [PATCH 1/5] acpi : move the acpi_idle_driver variable declaration Date: Wed, 25 Jul 2012 12:45:58 +0200 Message-Id: <1343213162-8064-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1343213162-8064-1-git-send-email-daniel.lezcano@linaro.org> References: <1343213162-8064-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQlTjYybNVnh9ABOvyB4oqPunz56gFH0TcSpp/J95geG4L54c//uIrBFZq9+l3ur2BiFcaxY 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 --- 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 7048b97..017b39d 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);