2004-10-26 01:25:51

by Paul E. McKenney

[permalink] [raw]
Subject: [PATCH] scheduler: remove redundant #ifdef [trivial]

Removes a redundant #ifdef CONFIG_SMP that is nested within an enclosing
#ifdef CONFIG_SMP.

Signed-off-by: <[email protected]>

----

sched.c | 2 --
1 files changed, 2 deletions(-)

diff -urpN -X ../dontdiff linux-2.5-2004.10.23/kernel/sched.c linux-2.5-2004.10.23-LBinf/kernel/sched.c
--- linux-2.5-2004.10.23/kernel/sched.c Sat Oct 23 13:23:31 2004
+++ linux-2.5-2004.10.23-LBinf/kernel/sched.c Sun Oct 24 10:50:12 2004
@@ -4437,14 +4437,12 @@ static void sched_domain_debug(void)
#define sched_domain_debug() {}
#endif

-#ifdef CONFIG_SMP
/*
* Initial dummy domain for early boot and for hotplug cpu. Being static,
* it is initialized to zero, so all balancing flags are cleared which is
* what we want.
*/
static struct sched_domain sched_domain_dummy;
-#endif

#ifdef CONFIG_HOTPLUG_CPU
/*


2004-10-26 06:35:51

by Ingo Molnar

[permalink] [raw]
Subject: Re: [PATCH] scheduler: remove redundant #ifdef [trivial]


* Paul E. McKenney <[email protected]> wrote:

> Removes a redundant #ifdef CONFIG_SMP that is nested within an enclosing
> #ifdef CONFIG_SMP.
>
> Signed-off-by: <[email protected]>

Acked-by: Ingo Molnar <[email protected]>

Ingo