From patchwork Wed Sep 9 20:27:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 53334 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 5739222B19 for ; Wed, 9 Sep 2015 20:27:33 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf59152wic.1 for ; Wed, 09 Sep 2015 13:27:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=c2CobRqVaDqRnMkob1SEQCRa13MkrU/ABAPyOJlArK4=; b=ZmRLEzWrhVQTLd0YsB9FlLnv2wLpMzj4jKrFyP5Zt97MLggtnxYvr2ZdUyhak4LXSx IfvGKrsyaU32aqNOhGrOoSMr1P2bqFUK1MXUAP5NFUksbxHLfyBopC1/56pRX4PFTvyH ae6O2zTUT5BOFJw9rRejKn6dSDi86a9nEI0/RrRFPTBVJjmWFlvOGxGTZ2Xa/fUyl4Ve lBPuVzLO6c9WFVRVBBXdVZKp2B0XIq+MqidC4gXyGWbM+KPdi1qZDjlDvJyLivo4VEoU y/jqK9sXMMrE8sYH/DaULgy3z00B+xYmef8g7RrXLStr1a1xBfrplBtAR/tlKLtWlS08 Em8A== X-Gm-Message-State: ALoCoQkbHdPN7GDuTJmaXcJgNWTHdscu3ca9r6CbkI38cDGKca8xoylcV19oUH1sCuiVgjwwjf1k X-Received: by 10.195.18.100 with SMTP id gl4mr8675236wjd.4.1441830450842; Wed, 09 Sep 2015 13:27:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.170 with SMTP id x10ls104248lal.61.gmail; Wed, 09 Sep 2015 13:27:30 -0700 (PDT) X-Received: by 10.112.150.3 with SMTP id ue3mr30868900lbb.51.1441830450684; Wed, 09 Sep 2015 13:27:30 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id dx6si7809041lbc.64.2015.09.09.13.27.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 13:27:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by lamp12 with SMTP id p12so14396438lam.0 for ; Wed, 09 Sep 2015 13:27:30 -0700 (PDT) X-Received: by 10.112.51.142 with SMTP id k14mr19778260lbo.76.1441830450599; Wed, 09 Sep 2015 13:27:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.59.35 with SMTP id w3csp541969lbq; Wed, 9 Sep 2015 13:27:29 -0700 (PDT) X-Received: by 10.50.23.73 with SMTP id k9mr23710416igf.59.1441830445056; Wed, 09 Sep 2015 13:27:25 -0700 (PDT) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com. [209.85.220.43]) by mx.google.com with ESMTPS id fz12si13384122pdb.140.2015.09.09.13.27.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 13:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.220.43 as permitted sender) client-ip=209.85.220.43; Received: by pacfv12 with SMTP id fv12so20238513pac.2 for ; Wed, 09 Sep 2015 13:27:24 -0700 (PDT) X-Received: by 10.66.65.234 with SMTP id a10mr65259931pat.2.1441830444107; Wed, 09 Sep 2015 13:27:24 -0700 (PDT) Received: from esagroth.qualcomm.com (rrcs-67-52-130-30.west.biz.rr.com. [67.52.130.30]) by smtp.gmail.com with ESMTPSA id md10sm7992049pdb.0.2015.09.09.13.27.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 13:27:23 -0700 (PDT) From: Ashwin Chaugule To: rjw@rjwysocki.net Cc: sudeep.holla@arm.com, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, linaro-acpi@lists.linaro.org, patches@linaro.org, viresh.kumar@linaro.org, rwells@codeaurora.org, Ashwin Chaugule Subject: [PATCH v9 3/5] ACPI: Add weak routines for ACPI CPU Hotplug Date: Wed, 9 Sep 2015 16:27:06 -0400 Message-Id: <9ecb979df2c7c5aea84e5670a5620110ddcf21c5.1441830300.git.ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ashwin.chaugule@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add weak functions for architectures which do not support hot-adding and removing CPUs which aren't detected at bootup. (e.g. via MADT). This helps preserve the Kconfig dependency from: commit cbfc1bae55bb ("[ACPI] ACPI_HOTPLUG_CPU Kconfig dependency update") prevent: HOTPLUG_CPU=y ACPI_PROCESSOR=y ACPI_HOTPLUG_CPU=n Signed-off-by: Ashwin Chaugule --- drivers/acpi/acpi_processor.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index 92a5f73..e1e0285 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c @@ -164,6 +164,24 @@ static int acpi_processor_errata(void) -------------------------------------------------------------------------- */ #ifdef CONFIG_ACPI_HOTPLUG_CPU +int __weak acpi_map_cpu(acpi_handle handle, + phys_cpuid_t physid, int *pcpu) +{ + return -ENODEV; +} + +int __weak acpi_unmap_cpu(int cpu) +{ + return -ENODEV; +} + +int __weak arch_register_cpu(int cpu) +{ + return -ENODEV; +} + +void __weak arch_unregister_cpu(int cpu) {} + static int acpi_processor_hotadd_init(struct acpi_processor *pr) { unsigned long long sta;