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: 6612171 Return-Path: X-Original-To: patchwork-linux-pm@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 E7C6B9F1C1 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 1E9F22076F for ; Mon, 15 Jun 2015 20:09:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2FE7C20768 for ; Mon, 15 Jun 2015 20:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756017AbbFOUJj (ORCPT ); Mon, 15 Jun 2015 16:09:39 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:34614 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756008AbbFOUJf (ORCPT ); Mon, 15 Jun 2015 16:09:35 -0400 Received: by pdbki1 with SMTP id ki1so80104005pdb.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=DH9l0RW5W8tRsAuDDmoM5WiaLhIpYlcCpiCVyzMEuHrTlkJecPS+awCVTaGd/iqCP8 5sbC7CGjmyshnCVCw2Ch8yRUccxAul3ULMoSwpYHl4KkKX2KHDBGcjeagwR6V2G7P1VF REcAsgT5cxX0aB0UAh4/3ZNoHhnG8DhfjZr9xQCPBtBQfU2vcEb7mEC16WM/P6sFGYLb 6FT4lp9etNRxG4LvHU+JJWbECTZbX/EpT2lrX2bEgQcLi8J/jOtM1DzBxvkLVD4N9d9N vAtqf3Wf42eDt384jcIybcLO57P0N0Co0+oFFrbiQK9RhpqRMk49oUQQ4xID8LqqCKq+ YJow== X-Gm-Message-State: ALoCoQmLWP1icmiQgtlv3+4vPyh5V7S+S14cTnt0DUTZe1VdLTvkZrJxDatJB6vgQauNf1nk5n5m 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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;