From patchwork Mon Jun 15 20:09:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 49938 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E89B3205DE for ; Mon, 15 Jun 2015 20:10:07 +0000 (UTC) Received: by lagh6 with SMTP id h6sf6531765lag.0 for ; Mon, 15 Jun 2015 13:10:06 -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=TEGB+J8Xu5jmLnBtvISqowcGnfCQzvFzapsmj7JYo0A=; b=cAWqRE+tmvq+ZfLTDvc3/3nG+Zs7TglgHj5BX42y8QmnH99cNW4OU0R5tn34zQoFYL zRn3PZ1u0I4UvyukQDWZ5agj8RcT/KbMQyqccujChDZTXQOYrlYCE/8a/ALLh1iIcH1X TI16PsJ0Z7SP01Z1/DYPXi1iJP4Y2Jk69T+sEgs27ta1wDVW8GEMuFdCx8XbUlBptEyo DK99+41ZWuX8wMhZLPKbZ4z1DAmYMA8kjtIFGpa3ZARyz5/AnMBsTL7Fd5BsjuzdNNHM 4yWhDHeE9vNO5FKfPxwnO3HrAR+JK1j+BgjcvlQICrUVUdBR3F6zLQZDY6X6Ct8IhHDl niGA== X-Gm-Message-State: ALoCoQm9olG+LQ7nS+8wZZGNRbzhP7Kj3t+oWlBcZWQBwa41A7taywwr+m/URlRcU26Qce3mjBa5 X-Received: by 10.180.86.98 with SMTP id o2mr9569947wiz.4.1434399006625; Mon, 15 Jun 2015 13:10:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.227 with SMTP id lf3ls939619lab.93.gmail; Mon, 15 Jun 2015 13:10:06 -0700 (PDT) X-Received: by 10.112.139.130 with SMTP id qy2mr1805142lbb.21.1434399006463; Mon, 15 Jun 2015 13:10:06 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id ku8si11286966lac.87.2015.06.15.13.10.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 13:10:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbqq2 with SMTP id qq2so60482230lbb.3 for ; Mon, 15 Jun 2015 13:10:06 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr1765307lbc.73.1434399006294; Mon, 15 Jun 2015 13:10:06 -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.108.230 with SMTP id hn6csp1648743lbb; Mon, 15 Jun 2015 13:10:05 -0700 (PDT) X-Received: by 10.66.194.201 with SMTP id hy9mr52491965pac.140.1434398975616; Mon, 15 Jun 2015 13:09:35 -0700 (PDT) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com. [209.85.220.54]) by mx.google.com with ESMTPS id dp5si6914182pdb.170.2015.06.15.13.09.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 13:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.220.54 as permitted sender) client-ip=209.85.220.54; Received: by padev16 with SMTP id ev16so72050914pad.0 for ; Mon, 15 Jun 2015 13:09:34 -0700 (PDT) X-Received: by 10.68.185.37 with SMTP id ez5mr31731740pbc.74.1434398974581; Mon, 15 Jun 2015 13:09:34 -0700 (PDT) Received: from esagroth.qualcomm.com (rrcs-67-52-130-30.west.biz.rr.com. [67.52.130.30]) by mx.google.com with ESMTPSA id eu5sm13059688pbb.44.2015.06.15.13.09.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Jun 2015 13:09:33 -0700 (PDT) From: Ashwin Chaugule To: rjw@rjwysocki.net, jaswinder.singh@linaro.org Cc: linux-pm@vger.kernel.org, linaro-acpi@lists.linaro.org, patches@linaro.org, linux-acpi@vger.kernel.org, viresh.kumar@linaro.org, sudeep.holla@arm.com, Ashwin Chaugule Subject: [PATCH v6 7/7] ACPI: Add weak routines for ACPI CPU Hotplug Date: Mon, 15 Jun 2015 16:09:11 -0400 Message-Id: <70c8307fa894a2733d289a50d67da022afae69e1.1434398373.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.217.172 as permitted sender) smtp.mail=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 58f335c..1fbf252 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;