From patchwork Sat Oct 6 15:27:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 1558301 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@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 106203FD9C for ; Sat, 6 Oct 2012 15:35:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754440Ab2JFPer (ORCPT ); Sat, 6 Oct 2012 11:34:47 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:42425 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754153Ab2JFPep (ORCPT ); Sat, 6 Oct 2012 11:34:45 -0400 Received: by mail-pa0-f46.google.com with SMTP id hz1so2755784pad.19 for ; Sat, 06 Oct 2012 08:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=vk3QmpDIsgr9nqGkJvyk41A6KfkHmMGh8mSXoyMvf3w=; b=YSag9Sk6KfORewcE0RXlSR37KIoupZmahtmNymlIsLDnzO7NyDylBetZlViznfQbP9 c0TsNCywJefsuiAWD1U9O5jB9ycIfs1T3V2ingBNtcr2yNAoiGeBUfLpmlkSVaBUSLxe TWeJZY2GSQVkBU/Pkgd+shEHwreOpj94Ok0X28NMJtukMP0PvpSR5ZSl3+qgGGa1xine uQM+b8+g3DkY4eTkj8r4Y5YxSpivdCJDLs7khPJeLrjBtyLp9D5eGqi8GRCQhvbLOdK/ 8BPRRAOdQwfSQ6EjC394XXiPtBacKCMnKpzlMZmTBZZ7ifqYVr8PoHvRPTNvAB1Aponc DBQA== Received: by 10.68.242.231 with SMTP id wt7mr39200125pbc.99.1349537684903; Sat, 06 Oct 2012 08:34:44 -0700 (PDT) Received: from localhost.localdomain ([221.221.24.247]) by mx.google.com with ESMTPS id vz8sm7785292pbc.63.2012.10.06.08.34.29 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 06 Oct 2012 08:34:44 -0700 (PDT) From: Jiang Liu To: Yinghai Lu , Yasuaki Ishimatsu , Kenji Kaneshige , Wen Congyang , Tang Chen , Taku Izumi Cc: Hanjun Guo , Yijing Wang , Gong Chen , Jiang Liu , Tony Luck , Huang Ying , Bob Moore , Len Brown , "Srivatsa S . Bhat" , Bjorn Helgaas , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org Subject: [RFC PATCH v3 20/28] ACPI/processor: remove dead code from processor_driver.c Date: Sat, 6 Oct 2012 23:27:28 +0800 Message-Id: <1349537256-21670-21-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1349537256-21670-1-git-send-email-jiang.liu@huawei.com> References: <1349537256-21670-1-git-send-email-jiang.liu@huawei.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org There are some dead code in processor_driver.c, so clean it up. Signed-off-by: Jiang Liu --- drivers/acpi/processor_driver.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index bfc31cb..abbce9e 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c @@ -61,17 +61,11 @@ #define ACPI_PROCESSOR_CLASS "processor" #define ACPI_PROCESSOR_DEVICE_NAME "Processor" -#define ACPI_PROCESSOR_FILE_INFO "info" -#define ACPI_PROCESSOR_FILE_THROTTLING "throttling" -#define ACPI_PROCESSOR_FILE_LIMIT "limit" #define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80 #define ACPI_PROCESSOR_NOTIFY_POWER 0x81 #define ACPI_PROCESSOR_NOTIFY_THROTTLING 0x82 #define ACPI_PROCESSOR_DEVICE_HID "ACPI0007" -#define ACPI_PROCESSOR_LIMIT_USER 0 -#define ACPI_PROCESSOR_LIMIT_THERMAL 1 - #define _COMPONENT ACPI_PROCESSOR_COMPONENT ACPI_MODULE_NAME("processor_driver"); @@ -261,9 +255,6 @@ static int acpi_processor_get_info(struct acpi_device *device) if (!pr) return -EINVAL; - if (num_online_cpus() > 1) - errata.smp = TRUE; - acpi_processor_errata(pr); /*