From patchwork Sun Nov 4 15:23:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 1694631 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 8D99E3FD2B for ; Sun, 4 Nov 2012 15:27:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755066Ab2KDPY3 (ORCPT ); Sun, 4 Nov 2012 10:24:29 -0500 Received: from mail-da0-f46.google.com ([209.85.210.46]:40017 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754994Ab2KDPYX (ORCPT ); Sun, 4 Nov 2012 10:24:23 -0500 Received: by mail-da0-f46.google.com with SMTP id n41so2322643dak.19 for ; Sun, 04 Nov 2012 07:24:23 -0800 (PST) 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=mHqKc4V9FtcQ2sKhuhObG28g0AfPaZMc6silZvAtbCk=; b=IQgZhE4YxeomF8BQlzx+7yVgMCE+0XcT78ODo9W2wyHeL2orrfUQlqpudmn1H+nFa5 DIFe9yb0oOmVTmjJS2uiU4++QKUTXONBQg3pAZ3/Qs6bPoZ3JVCnAFHioGzhpTPJIVIJ YlAVw+ENCEqOj9eZA0qnHd3daRRBek9yGXFMNr+kls0YH6n1ll7M/fF1NXBzWCkgk2j0 Rg2R0PJjx4KNmQSbxImMSq3N16YUKeycBLquwUrwZWblP2T9657M97oMVBUUjzqtac6q VmYYJI8R8ITISHBScAfc5VbbuCtMDScFdOCGPq28xdu3BBb5A7ZIOh8slejcsI5kjnb6 aPJA== Received: by 10.68.248.70 with SMTP id yk6mr22607519pbc.160.1352042663038; Sun, 04 Nov 2012 07:24:23 -0800 (PST) Received: from localhost.localdomain ([120.196.98.117]) by mx.google.com with ESMTPS id nd6sm9020763pbc.68.2012.11.04.07.24.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Nov 2012 07:24:22 -0800 (PST) From: Jiang Liu To: "Rafael J . Wysocki" , Yinghai Lu , Tony Luck , Yasuaki Ishimatsu , Wen Congyang , Tang Chen , Taku Izumi , Bjorn Helgaas Cc: Jiang Liu , Kenji Kaneshige , Huang Ying , Bob Moore , Len Brown , "Srivatsa S . Bhat" , Yijing Wang , Hanjun Guo , Jiang Liu , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org Subject: [ACPIHP PATCH part4 1/9] ACPI/processor: remove dead code from processor_driver.c Date: Sun, 4 Nov 2012 23:23:54 +0800 Message-Id: <1352042642-7306-2-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352042642-7306-1-git-send-email-jiang.liu@huawei.com> References: <1352042642-7306-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 is 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 e78c2a5..aa9c43a 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); /*