Re: [PATCH] kstat_this_cpu in terms of __get_cpu_var and use it

From: Linus Torvalds (torvalds@osdl.org)
Date: Thu Jul 03 2003 - 21:24:21 EST


On Fri, 4 Jul 2003, Rusty Russell wrote:
>
> kstat_this_cpu() is defined in terms of per_cpu instead of __get_cpu_var.
> This patch changes that, and uses it where appropriate.

This makes some things much slower, since we'll re-compute the cpu number
over and over and over again.

This per-cpu'ification has to stop if it just makes code slower.

                Linus

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



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:21 EST