From patchwork Thu Jul 9 18:04:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashwin Chaugule X-Patchwork-Id: 50986 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E3C32213FD for ; Thu, 9 Jul 2015 18:04:54 +0000 (UTC) Received: by lbko2 with SMTP id o2sf12118013lbk.0 for ; Thu, 09 Jul 2015 11:04:53 -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=TEGB+J8Xu5jmLnBtvISqowcGnfCQzvFzapsmj7JYo0A=; b=ABeiO99ifXmPql/273+g2ZIytvLAIrKVaeEiRA+bMQficocybuEKpfVyrdVgcbxeTQ +kupIfQjDyj5iwFH+KpeaY3WGifkqcawBFh9yDonDVIsa7tS7zI6ev92uhbJsHjuxmRW 75SobmIMGpYykuVYMZeituhK2faZeNRbEPQPdIVkDCuFjIYSNIcs4p3+T3FLf4MD+UgF NGurf89iLn4SKlFHPXbqnQaQzEXT4P3VlyFlokRXgxurgRfBxqkwOrzxL2YvLIkL8nXU 4jVqpd1YjHWQSQFOfS4bNglVW4kXfFVrHOU7g73r+HTJGMPfvzVdlxZ5o2l2HAzT2KKH T+6Q== X-Gm-Message-State: ALoCoQlgGsyozaIb4Oji6O78gWOQirGO9qkSxM/TtY5CjQJavcAIhKlFBnWpKf8UZqBx43LRK7CB X-Received: by 10.180.87.201 with SMTP id ba9mr24440931wib.3.1436465093864; Thu, 09 Jul 2015 11:04:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.134 with SMTP id c6ls1145135lag.54.gmail; Thu, 09 Jul 2015 11:04:53 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr15902953lay.72.1436465093586; Thu, 09 Jul 2015 11:04:53 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id z3si5388196lbp.168.2015.07.09.11.04.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 11:04:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labgy5 with SMTP id gy5so98983325lab.2 for ; Thu, 09 Jul 2015 11:04:53 -0700 (PDT) X-Received: by 10.152.36.102 with SMTP id p6mr16026165laj.19.1436465093487; Thu, 09 Jul 2015 11:04:53 -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 hn6csp828614lbb; Thu, 9 Jul 2015 11:04:52 -0700 (PDT) X-Received: by 10.140.131.81 with SMTP id 78mr28604528qhd.70.1436465077829; Thu, 09 Jul 2015 11:04:37 -0700 (PDT) Received: from mail-qg0-f43.google.com (mail-qg0-f43.google.com. [209.85.192.43]) by mx.google.com with ESMTPS id 28si6923193qks.123.2015.07.09.11.04.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 11:04:37 -0700 (PDT) Received-SPF: pass (google.com: domain of ashwin.chaugule@linaro.org designates 209.85.192.43 as permitted sender) client-ip=209.85.192.43; Received: by qgef3 with SMTP id f3so68940049qge.0 for ; Thu, 09 Jul 2015 11:04:37 -0700 (PDT) X-Received: by 10.140.95.204 with SMTP id i70mr26083063qge.51.1436465077228; Thu, 09 Jul 2015 11:04:37 -0700 (PDT) Received: from esagroth.qualcomm.com (rrcs-67-52-130-30.west.biz.rr.com. [67.52.130.30]) by smtp.gmail.com with ESMTPSA id x79sm3969918qha.10.2015.07.09.11.04.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 11:04:36 -0700 (PDT) From: Ashwin Chaugule To: rjw@rjwysocki.net, jaswinder.singh@linaro.org Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, linaro-acpi@lists.linaro.org, patches@linaro.org, viresh.kumar@linaro.org, sudeep.holla@arm.com, Ashwin Chaugule Subject: [PATCH v7 6/8] ACPI: Add weak routines for ACPI CPU Hotplug Date: Thu, 9 Jul 2015 14:04:22 -0400 Message-Id: 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.42 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;