Re: [PATCH] SLAB : Use num_possible_cpus() in enable_cpucache()

From: Pekka Enberg
Date: Wed Mar 21 2007 - 09:02:43 EST


On 3/21/07, Eric Dumazet <dada1@xxxxxxxxxxxxx> wrote:
As most shiped linux kernels are now compiled with CONFIG_SMP, there is no way
a preprocessor #if can detect if the machine is UP or SMP. Better to use
num_possible_cpus().

Looks good to me.

Acked-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/