From: Mike Turquette <mturquette@ti.com>
To: linux-kernel@vger.kernel.org
Cc: linux-pm@lists.linux-foundation.org, linaro-dev@lists.linaro.org,
patches@linaro.org, gregkh@suse.de, peterz@infradead.org,
amit.kucheria@linaro.org, Mike Turquette <mturquette@ti.com>
Subject: [PATCH v3 2/2] cpu: update cpu_hotpluggable_mask in register_cpu
Date: Thu, 11 Aug 2011 12:54:47 -0700 [thread overview]
Message-ID: <1313092487-15858-2-git-send-email-mturquette@ti.com> (raw)
In-Reply-To: <1313092487-15858-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 <mturquette@ti.com>
---
Change log:
v2: no change
v3: 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)
--
1.7.4.1
next prev parent reply other threads:[~2011-08-11 20:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 20:03 [PATCH v2 0/2] new cpumask for hotpluggable CPUs Mike Turquette
2011-08-10 20:03 ` [PATCH v2 1/2] cpumask: introduce " Mike Turquette
2011-08-10 20:53 ` Daniel Lezcano
2011-08-11 6:06 ` Amit Kucheria
2011-08-11 18:39 ` Turquette, Mike
2011-08-10 20:03 ` [PATCH v2 2/2] cpu: update cpu_hotpluggable_mask in register_cpu Mike Turquette
2011-08-10 20:54 ` Daniel Lezcano
2011-08-11 18:30 ` [PATCH v2 0/2] new cpumask for hotpluggable CPUs Peter Zijlstra
2011-08-11 19:25 ` Turquette, Mike
2011-08-11 19:38 ` Peter Zijlstra
2011-08-11 19:54 ` [PATCH v3 1/2] cpumask: introduce " Mike Turquette
2011-08-11 19:54 ` Mike Turquette [this message]
2011-08-11 20:02 ` Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1313092487-15858-2-git-send-email-mturquette@ti.com \
--to=mturquette@ti.com \
--cc=amit.kucheria@linaro.org \
--cc=gregkh@suse.de \
--cc=linaro-dev@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=patches@linaro.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®