Re: [PATCH 2/9] sched: treewide: use is_kthread()

From: Valentin Schneider
Date: Wed Aug 14 2019 - 09:37:30 EST


On 14/08/2019 11:41, Mark Rutland wrote:
> Now that we have is_kthread(), let's convert existing open-coded checks
> of the form:
>
> task->flags & PF_KTHREAD
>
> ... over to the new helper, which makes things a little easier to read,
> and sets a consistent example for new code to follow.
>

[...]

> kernel/sched/core.c | 8 ++++----
> kernel/sched/idle.c | 2 +-
> kernel/sched/wait.c | 2 +-

Looks all sane there for me.

Reviewed-by: Valentin Schneider <valentin.schneider@xxxxxxx>