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: 51950 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 patches.linaro.org (Postfix) with ESMTPS id 3793422A15 for ; Wed, 5 Aug 2015 13:41:23 +0000 (UTC) Received: by labop5 with SMTP id op5sf6732791lab.1 for ; Wed, 05 Aug 2015 06:41:22 -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=YlxTAFp1jYZuJgrbXRtFPq7SsXQ+ETkzQNyaFvbWqNTHBFynDmWMbJdFlggHfOdORW 638dVsqROnSTxx/4qZ3vlh32UnaEaqM95CHWSH2ayXOx1PDeU6RKos1oY0go/R9v9BeK 9fGhu9XiTNZYQ5r8MlZOeBGF6tiS9TvqsGijcbRgqIMvTH7jitwL7+d2sVYiBWAbjKAt ioX+QrWy8IyJrZZTFnd0CkZ1v06hePF/xiqQrQ/hUBwx/49Ns+hN3AiiTPznjFqeuo6q cjBQdxnSiUbp0P9DkStqN7smMvhthGerMw3eXfTHGJzlf63OhHnEdDcMTD9+zo0Bm9fo 30/Q== X-Gm-Message-State: ALoCoQkm82BWJFbcIBSCoHeH/vRt4JqdDijVV+CGcfrHbZEZUDNWN3FeahNDtzdKR0E5qcoSz36F X-Received: by 10.194.188.104 with SMTP id fz8mr2778482wjc.1.1438782082231; Wed, 05 Aug 2015 06:41:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.7 with SMTP id bc7ls199489lab.74.gmail; Wed, 05 Aug 2015 06:41:21 -0700 (PDT) X-Received: by 10.112.51.133 with SMTP id k5mr9138108lbo.107.1438782081949; Wed, 05 Aug 2015 06:41:21 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id ph9si1061095lbb.120.2015.08.05.06.41.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Aug 2015 06:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by labkb6 with SMTP id kb6so7088044lab.2 for ; Wed, 05 Aug 2015 06:41:21 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr9512330lbb.35.1438782081607; Wed, 05 Aug 2015 06:41:21 -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.7.198 with SMTP id l6csp380543lba; Wed, 5 Aug 2015 06:41:20 -0700 (PDT) X-Received: by 10.129.107.196 with SMTP id g187mr9001603ywc.37.1438782062032; Wed, 05 Aug 2015 06:41:02 -0700 (PDT) Received: from mail-yk0-f174.google.com (mail-yk0-f174.google.com. [209.85.160.174]) by mx.google.com with ESMTPS id b185si1733921ywd.207.2015.08.05.06.41.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Aug 2015 06:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.160.174 as permitted sender) client-ip=209.85.160.174; Received: by ykoo205 with SMTP id o205so35349578yko.0 for ; Wed, 05 Aug 2015 06:41:01 -0700 (PDT) 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: 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.50 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 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;