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: 6612161 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 00A429F6CE for ; Mon, 15 Jun 2015 20:09:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 23E2E20710 for ; Mon, 15 Jun 2015 20:09:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D6302076B for ; Mon, 15 Jun 2015 20:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755164AbbFOUJi (ORCPT ); Mon, 15 Jun 2015 16:09:38 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:33857 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756017AbbFOUJf (ORCPT ); Mon, 15 Jun 2015 16:09:35 -0400 Received: by pacgb13 with SMTP id gb13so41793089pac.1 for ; Mon, 15 Jun 2015 13:09:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=TEGB+J8Xu5jmLnBtvISqowcGnfCQzvFzapsmj7JYo0A=; b=OCHbNcR3K2iNmeaFWEPKwjmHyNJI2RVH2Uz54oLEp1fzY/fwcIRd0uRsTJQLIt6AFM ePiGCYH3HZ8+NkUd+XNv2G0CKcn/jg12q3PTMBFWZUaHuT2lhALlyJJL0kGLpB4aS9hB oX4sWirQLjj/LVNtrgiUZScWmOXNBnVfF3hrWLQzLdNua2/CFaTK/QpqceMuq2gCWzVY Sn23VEgh32gHFmQoGhojdrKxa/IqcCoBLfrn4wdqX4JEsrx70Xbwb7eIWGhlUREbYFZu Bam3p/bMVPMA+S/WxeAJ/70Nx+GiWp79QyIJ8BgikUUwUlFlA56fUmCixErnQkaxErIp GvsA== X-Gm-Message-State: ALoCoQmAUl/PFzLbeDxljjV2BkMpHjEF+W8Pje0w5rAWxf1wdyU/50FMhS1HWL4ORuL78KEcOSLt 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: Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;