Re: [PATCH] printk: use this_cpu_{read|write} api on printk_pending
From: Eric Dumazet
Date: Fri Nov 26 2010 - 12:21:02 EST
Le vendredi 26 novembre 2010 Ã 11:11 -0600, Christoph Lameter a Ãcrit :
> I thought sanity tests do not apply for performance testing scenarios?
>
CONFIG_DEBUG_PREEMPT
> smp_processor_id() is usually a simple per cpu data access and very fast.
>
Sure, but when its already in a register, its better to use the
register ;)
--
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/