[PATCH] RCU - cpu-offline-cleanup [1/3]
From: Dipankar Sarma (dipankar_at_in.ibm.com)
Date: 07/31/04
- Previous message: Willy Tarreau: "Re: PATCH: VLAN support for 3c59x/3c90x"
- Next in thread: Dipankar Sarma: "Re: [PATCH] RCU - rcu-cpu-offline-fix [2/3]"
- Reply: Dipankar Sarma: "Re: [PATCH] RCU - rcu-cpu-offline-fix [2/3]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 31 Jul 2004 14:24:03 +0530 To: Andrew Morton <akpm@osdl.org>
Andrew,
There is a series of patches in my tree and these 3 are the first
ones that should probably be merged down the road. Descriptions are on
top of the patches. Please include them in -mm.
A lot of RCU code will be cleaned up later in order to support
call_rcu_bh(), the separate RCU interface that considers softirq
handler completion a quiescent state.
Thanks
Dipankar
Signed-off-by: Dipankar Sarma <dipankar@in.ibm.com>
Minor cleanup of the hotplug code to remove #ifdef in cpu
event notifier handler. If CONFIG_HOTPLUG_CPU is not defined,
CPU_DEAD case will be optimized off.
kernel/rcupdate.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff -puN kernel/rcupdate.c~cpu-offline-cleanup kernel/rcupdate.c
--- linux-2.6.8-rc2-rcu/kernel/rcupdate.c~cpu-offline-cleanup 2004-07-29 13:35:18.000000000 +0530
+++ linux-2.6.8-rc2-rcu-dipankar/kernel/rcupdate.c 2004-07-29 13:41:18.000000000 +0530
@@ -242,6 +242,12 @@ unlock:
tasklet_kill_immediate(&RCU_tasklet(cpu), cpu);
}
+#else
+
+static void rcu_offline_cpu(int cpu)
+{
+}
+
#endif
void rcu_restart_cpu(int cpu)
@@ -325,11 +331,9 @@ static int __devinit rcu_cpu_notify(stru
case CPU_UP_PREPARE:
rcu_online_cpu(cpu);
break;
-#ifdef CONFIG_HOTPLUG_CPU
case CPU_DEAD:
rcu_offline_cpu(cpu);
break;
-#endif
default:
break;
}
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Willy Tarreau: "Re: PATCH: VLAN support for 3c59x/3c90x"
- Next in thread: Dipankar Sarma: "Re: [PATCH] RCU - rcu-cpu-offline-fix [2/3]"
- Reply: Dipankar Sarma: "Re: [PATCH] RCU - rcu-cpu-offline-fix [2/3]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: 2.6.13-mm1
... > before allocating memory for a certain cpu. ... With the above patches
... > on uniprocessor machines (as soon as someone tries to dereference ... send
the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [PATCH] cpufreq_ondemand tweaks (round two)
... break up my patches to 'ondemand' into three smaller patches and my clean my ...
have unacceptable latency between min and max freq transition, ... If it is decided that
cpu needs to be sped up a notch but yet the cpu frequency ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel) - Re: top hogs CPU in 2.6: kallsyms_lookup is very slow
... > CPU than in 2.4 now. ... I was the one who wrote those patches,
so I'm glad to know that they ... comparison with 2.4 kernel, because there where no kallsyms
there. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - [RFC, PATCH] 4/5 rcu lock update: Hide locking details
... Clear it from the cpu mask and complete the grace period if it was the last
... +static void cpu_quiet ... send the line "unsubscribe linux-kernel" in
... (Linux-Kernel) - [patch 04/14] radio/radio-aimslab: replace while/schedule() with msleep()
... the CPU is given up for the time desired. ... } static void rt_decvol_
- ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body
of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel)