Re: [PATCH v2 1/3] hrtimer: add hrtimer_init_cpu()

From: Peter Zijlstra
Date: Wed Sep 12 2012 - 10:49:14 EST


On Wed, 2012-09-12 at 16:46 +0200, Stephane Eranian wrote:

> I am fine with dropping this patch. I just found it odd there was a per-cpu
> data reference embedded deep into the call. I wanted things to be more
> explicit. I know it works without the proposed change.

Ah the reason its there is to make sure the base pointer is a valid base
pointer, this avoids an extra conditional in a number of places. Note
that it uses raw_get_cpu_var(), so it doesn't even actually know which
specific pointer goes in.


--
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/