[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lhcs-devel
Subject:    [lhcs-devel] Another Minor patch
From:       Srivatsa Vaddagiri <vatsa () in ! ibm ! com>
Date:       2004-03-30 11:26:25
Message-ID: 20040330111425.GA6877 () in ! ibm ! com
[Download RAW message or body]

Noticed that we don't invoke hotplug script during online! 
Attached patch fixes that:


---

 ameslab-vatsa/kernel/cpu.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN kernel/cpu.c~run_hotplug_during_online kernel/cpu.c
--- ameslab/kernel/cpu.c~run_hotplug_during_online	2004-03-30 15:44:56.000000000 +0530
+++ ameslab-vatsa/kernel/cpu.c	2004-03-30 15:45:22.000000000 +0530
@@ -191,6 +191,8 @@ int __devinit cpu_up(unsigned int cpu)
 	/* Now call notifier in preparation. */
 	notifier_call_chain(&cpu_chain, CPU_ONLINE, hcpu);
 
+	cpu_run_sbin_hotplug(cpu, "online");
+
 out_notify:
 	if (ret != 0)
 		notifier_call_chain(&cpu_chain, CPU_UP_CANCELED, hcpu);

_
-- 


Thanks and Regards,
Srivatsa Vaddagiri,
Linux Technology Center,
IBM Software Labs,
Bangalore, INDIA - 560017


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
lhcs-devel mailing list
lhcs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lhcs-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic