"David S. Miller" <davem@redhat.com> wrote: > > From: Andrew Morton <akpm@digeo.com> > Date: Sat, 14 Jun 2003 01:37:53 -0700 > > Herbert Xu <herbert@gondor.apana.org.au> wrote: > > + smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0); > > flow_cache_flush_per_cpu(&info); > > on_each_cpu() will do this for you. > > egrep linux-2.4/include/linux/*.h on_each_cpu() > > :-) > > A backport to 2.4.x so we're trying to stick to 2.4.x-only > facilities as much as possible. bunch tards. backport this then ;) /* * Call a function on all processors */ static inline int on_each_cpu(void (*func) (void *info), void *info, int retry, int wait) { int ret = 0; preempt_disable(); ret = smp_call_function(func, info, retry, wait); func(info); preempt_enable(); return ret; } - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html