Re: [PATCH] sched/core: remove get_cpu() from sched_fork()

From: Peter Zijlstra
Date: Fri Jul 06 2018 - 09:18:17 EST


On Fri, Jul 06, 2018 at 03:06:15PM +0200, Sebastian Andrzej Siewior wrote:
> Based on this it is possible to remove get_cpu() and use
> smp_processor_id() for the `cpu' variable without breaking anything.

Almost.. I think, see init_task_preempt_count().