Re: [PATCH] timer: remove code redundancy while calling get_nohz_timer_target()
From: Viresh Kumar
Date: Wed Mar 19 2014 - 00:49:55 EST
On 18 March 2014 21:14, Frederic Weisbecker <fweisbec@xxxxxxxxx> wrote:
> On Tue, Mar 18, 2014 at 04:26:07PM +0530, Viresh Kumar wrote:
>> + if (pinned || !get_sysctl_timer_migration() || !idle_cpu(cpu))
>> + return cpu;
>
> Maybe the pinned part should stay a caller detail. Although I don't really mind.
I tried that initially, but in that case the callers would have to call
smp_processor_id() in the else part and so decided to put that as well into this
routine only.
> The patch looks good!
Thanks.
--
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/