From patchwork Thu Jun 4 16:32:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 49539 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 190642154F for ; Thu, 4 Jun 2015 16:33:05 +0000 (UTC) Received: by labc7 with SMTP id c7sf13089661lab.1 for ; Thu, 04 Jun 2015 09:33:04 -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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=TEGB+J8Xu5jmLnBtvISqowcGnfCQzvFzapsmj7JYo0A=; b=h2pDKNWTd3sPN29zzJwYwEd6op74OhwbcLt7EZYAajysN0qa4pjkULRYF5gUTiPkZf IXC2KBCDRBRp74egD1vDEkumI17uOEzUDq7u3caGqMZUP5G9VFMtoNFQeL7J1mqHxb0/ /3zp3tkr17n0MclP+Dp2gWvbhZx2nz8wJtDczExB4SwwHb9LxZuZMgZD/aZ/UkKM+sks 68JI1avhhDusUWtmnB0mbwEhK6YEGdR8I0BPffsL3nqAlj4+tngzmSWzy1/ovgFfXDsj gwLm4moKNCqluQvGANIYK689d3MqPcOihbidNPWkcdjgABVuJy642MowfnXz+CdC6vuJ 0KuQ== X-Gm-Message-State: ALoCoQlSJOiG+ae3FDl6xElDLf9Ql0cKcI89e5nRl0M68Y/VKbVY+RhcA95XRrSPRDiRGsbg+sZd X-Received: by 10.112.166.137 with SMTP id zg9mr36342119lbb.11.1433435584116; Thu, 04 Jun 2015 09:33:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.2 with SMTP id ls2ls241528lac.51.gmail; Thu, 04 Jun 2015 09:33:03 -0700 (PDT) X-Received: by 10.152.116.113 with SMTP id jv17mr38580107lab.28.1433435583955; Thu, 04 Jun 2015 09:33:03 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id oq3si2268881lbb.125.2015.06.04.09.33.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 09:33:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbbqq2 with SMTP id qq2so30659796lbb.3 for ; Thu, 04 Jun 2015 09:33:03 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr37994196lbb.29.1433435583850; Thu, 04 Jun 2015 09:33:03 -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 hn6csp736877lbb; Thu, 4 Jun 2015 09:33:02 -0700 (PDT) X-Received: by 10.236.61.137 with SMTP id w9mr40765984yhc.31.1433435582109; Thu, 04 Jun 2015 09:33:02 -0700 (PDT) Received: from mail-yk0-f182.google.com (mail-yk0-f182.google.com. [209.85.160.182]) by mx.google.com with ESMTPS id 3si3077683yka.151.2015.06.04.09.33.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 09:33:02 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.160.182 as permitted sender) client-ip=209.85.160.182; Received: by yked142 with SMTP id d142so15806782yke.3 for ; Thu, 04 Jun 2015 09:33:01 -0700 (PDT) X-Received: by 10.170.34.4 with SMTP id 4mr46708105ykc.62.1433435581254; Thu, 04 Jun 2015 09:33:01 -0700 (PDT) Received: from esagroth.lan ([98.122.160.202]) by mx.google.com with ESMTPSA id k8sm3739947yha.18.2015.06.04.09.33.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 09:33:00 -0700 (PDT) From: Ashwin Chaugule To: rjw@rjwysocki.net Cc: linux-pm@vger.kernel.org, linaro-acpi@lists.linaro.org, patches@linaro.org, Ashwin Chaugule Subject: [RFC PATCH 1/1] ACPI: Add weak routines for ACPI CPU Hotplug Date: Thu, 4 Jun 2015 12:32:51 -0400 Message-Id: <1433435571-6763-1-git-send-email-ashwin.chaugule@linaro.org> X-Mailer: git-send-email 1.9.1 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.173 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;