Commit:     6721f77810dfcb7cbf8e97be6fa43fe2740dd0aa
Parent:     6faf4444f2445b068a4f75a86ae81b104c0eed2c
Author:     Heiko Carstens <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 9 10:18:44 2007 +0100
Committer:  Martin Schwidefsky <[EMAIL PROTECTED]>
CommitDate: Tue Jan 9 10:18:44 2007 +0100

    [S390] Fix cpu hotplug (missing 'online' attribute).
    72486f1f8f0a2bc828b9d30cf4690cf2dd6807fc inverts the logic if an
    'online' attribute in /sys/devices/system/cpu/cpuX should appear.
    So we end up with no hotpluggable cpus at all...
    Set the hotpluggable value to one to make sure the online
    attribute appears again.
    Signed-off-by: Heiko Carstens <[EMAIL PROTECTED]>
    Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
 arch/s390/kernel/smp.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 19090f7..c0cd255 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -794,7 +794,10 @@ static int __init topology_init(void)
        int ret;
        for_each_possible_cpu(cpu) {
-               ret = register_cpu(&per_cpu(cpu_devices, cpu), cpu);
+               struct cpu *c = &per_cpu(cpu_devices, cpu);
+               c->hotpluggable = 1;
+               ret = register_cpu(c, cpu);
                if (ret)
                        printk(KERN_WARNING "topology_init: register_cpu %d "
                               "failed (%d)\n", cpu, ret);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to