From patchwork Wed Aug 5 13:40:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 6949551 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 6E8AC9F39D for ; Wed, 5 Aug 2015 13:41:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB23F20430 for ; Wed, 5 Aug 2015 13:41:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8AED320481 for ; Wed, 5 Aug 2015 13:41:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753323AbbHENlG (ORCPT ); Wed, 5 Aug 2015 09:41:06 -0400 Received: from mail-yk0-f182.google.com ([209.85.160.182]:35702 "EHLO mail-yk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbbHENlC (ORCPT ); Wed, 5 Aug 2015 09:41:02 -0400 Received: by ykcq64 with SMTP id q64so30375929ykc.2 for ; Wed, 05 Aug 2015 06:41:01 -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=c2CobRqVaDqRnMkob1SEQCRa13MkrU/ABAPyOJlArK4=; b=jQhAxZYQcMxXLn7Re/094XgEPCC9ztumCI7KyinZxnlDnwVf8nVkqrEi55FdR4HLoU NbWpv1lSfmccNfaU/hN4pO5OTN+rxnykDbk6QhmnyPbGkqtBIVW46yhk6xk0oh9775tW mZ/NsDzDtVfpxqLB789+jqhuDLIDf+lMqaSr6jMYuPCbqG5qAW0J7j0y0LXC/eHAe2Tm fhpsX1OnnIsEx4WQvVhuPCho+m4VHokjTwx5yYnUPk1UxwMIT7CW0M9SD2yYwOwf/ei3 uX1TAeyn8sPFKLc0Vsv/pESS+0pWoytikFEAiqo1FgUt2Tlgi55C7FA27SaXWv1SaUPp 2rOw== X-Gm-Message-State: ALoCoQmxsk1ciTyT5g4ozCK3lgap181w1HnpLcrDquVXHx21K3RDk787dd2DXn2Wi1YXA2YnkTWs X-Received: by 10.129.59.9 with SMTP id i9mr9079945ywa.100.1438782061266; Wed, 05 Aug 2015 06:41:01 -0700 (PDT) Received: from esagroth.lan ([98.122.160.202]) by smtp.gmail.com with ESMTPSA id g187sm2768031ywf.35.2015.08.05.06.40.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Aug 2015 06:41:00 -0700 (PDT) From: Ashwin Chaugule To: rjw@rjwysocki.net, jaswinder.singh@linaro.org 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 v8 6/9] ACPI: Add weak routines for ACPI CPU Hotplug Date: Wed, 5 Aug 2015 09:40:29 -0400 Message-Id: <61551c17311eff68368a5a8b3115cf5e4017fc06.1438781668.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.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 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;