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

Linus Torvalds (torvalds@osdl.org)
Thu, 3 Jul 2003 19:24:21 -0700 (PDT)


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/