[PATCH] net/core/flow.c CONFIG_SMP Fix in flow_cache_flush(void)
- From: Ashutosh Naik <ashutosh.naik@xxxxxxxxx>
- Date: Sat, 28 Jan 2006 18:14:37 +0530
This patch fixes a warning in the function flow_cache_flush(), where
the the function smp_call_function is entered even when CONFIG_SMP is
not defined
Signed-off-by: Ashutosh Naik <ashutosh.naik@xxxxxxxxx>
--- /usr/src/linux-2.6.16-rc1/net/core/flow.c.orig 2006-01-28 18:00:48.000000000 +0530+++ /usr/src/linux-2.6.16-rc1/net/core/flow.c 2006-01-28 18:02:16.000000000 +0530 @@ -296,7 +296,9 @@ void flow_cache_flush(void) init_completion(&info.completion); local_bh_disable(); +#ifdef CONFIG_SMP smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0); +#endif /* CONFIG_SMP */ flow_cache_flush_tasklet((unsigned long)&info); local_bh_enable();
- Follow-Ups:
- Re: [PATCH] net/core/flow.c CONFIG_SMP Fix in flow_cache_flush(void)
- From: David S. Miller
- Re: [PATCH] net/core/flow.c CONFIG_SMP Fix in flow_cache_flush(void)
- From: Patrick McHardy
- Re: [PATCH] net/core/flow.c CONFIG_SMP Fix in flow_cache_flush(void)
- Prev by Date: Re: Libata, bug 5700.
- Next by Date: Re: [PATCH 01/04] Add multi-precision-integer maths library
- Previous by thread: Libata, bug 5700.
- Next by thread: Re: [PATCH] net/core/flow.c CONFIG_SMP Fix in flow_cache_flush(void)
- Index(es):