From patchwork Wed Aug 10 20:03:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Turquette X-Patchwork-Id: 3380 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id AA53C23F3F for ; Wed, 10 Aug 2011 20:05:59 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7927FA1825D for ; Wed, 10 Aug 2011 20:05:59 +0000 (UTC) Received: by mail-qy0-f180.google.com with SMTP id 31so1010017qyk.11 for ; Wed, 10 Aug 2011 13:05:59 -0700 (PDT) Received: by 10.229.42.10 with SMTP id q10mr3921757qce.45.1313006759219; Wed, 10 Aug 2011 13:05:59 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.190.71 with SMTP id dh7cs91662qcb; Wed, 10 Aug 2011 13:05:58 -0700 (PDT) Received: from mr.google.com ([10.90.14.28]) by 10.90.14.28 with SMTP id 28mr11159398agn.133.1313006758971 (num_hops = 1); Wed, 10 Aug 2011 13:05:58 -0700 (PDT) Received: by 10.90.14.28 with SMTP id 28mr7890856agn.133.1313006758245; Wed, 10 Aug 2011 13:05:58 -0700 (PDT) Received: from na3sys009aog116.obsmtp.com ([74.125.149.240]) by mx.google.com with SMTP id w5si2632590wfe.116.2011.08.10.13.05.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Aug 2011 13:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of mturquette@ti.com designates 74.125.149.240 as permitted sender) client-ip=74.125.149.240; Authentication-Results: mx.google.com; spf=pass (google.com: domain of mturquette@ti.com designates 74.125.149.240 as permitted sender) smtp.mail=mturquette@ti.com Received: from mail-gy0-f171.google.com ([209.85.160.171]) (using TLSv1) by na3sys009aob116.postini.com ([74.125.148.12]) with SMTP ID DSNKTkLkpd4jPYqE9UYMkvxFz9bBWnJaDKQs@postini.com; Wed, 10 Aug 2011 13:05:57 PDT Received: by mail-gy0-f171.google.com with SMTP id 5so951636gye.30 for ; Wed, 10 Aug 2011 13:05:57 -0700 (PDT) Received: by 10.236.179.5 with SMTP id g5mr9313142yhm.157.1313006757041; Wed, 10 Aug 2011 13:05:57 -0700 (PDT) Received: from localhost.localdomain (dragon.ti.com [192.94.94.33]) by mx.google.com with ESMTPS id q25sm1405412yhm.34.2011.08.10.13.05.55 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Aug 2011 13:05:56 -0700 (PDT) From: Mike Turquette To: linux-kernel@vger.kernel.org Cc: linux-pm@lists.linux-foundation.org, linaro-dev@lists.linaro.org, patches@linaro.org, gregkh@suse.de, Mike Turquette Subject: [PATCH v2 2/2] cpu: update cpu_hotpluggable_mask in register_cpu Date: Wed, 10 Aug 2011 13:03:34 -0700 Message-Id: <1313006614-28702-3-git-send-email-mturquette@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1313006614-28702-1-git-send-email-mturquette@ti.com> References: <1313006614-28702-1-git-send-email-mturquette@ti.com> Update the cpu_hotpluggable_mask for each registered CPU which supports hotplug. This makes it trivial for kernel code to know which CPUs support hotplug operations. Signed-off-by: Mike Turquette Reviewed-by: daniel.lezcano@linaro.org --- Change log: v2: no change drivers/base/cpu.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 251acea..91ddcf8 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -224,8 +224,10 @@ int __cpuinit register_cpu(struct cpu *cpu, int num) error = sysdev_register(&cpu->sysdev); - if (!error && cpu->hotpluggable) + if (!error && cpu->hotpluggable) { register_cpu_control(cpu); + set_cpu_hotpluggable(num, true); + } if (!error) per_cpu(cpu_sys_devices, num) = &cpu->sysdev; if (!error)