Skip to content
Commit 8f894bf4 authored by Yisheng Xie's avatar Yisheng Xie Committed by Ingo Molnar
Browse files

sched/debug: Use match_string() helper instead of open-coded logic



match_string() returns the index of an array for a matching string,
which can be used instead of the open coded variant.

Signed-off-by: default avatarYisheng Xie <xieyisheng1@huawei.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/lkml/1527765086-19873-15-git-send-email-xieyisheng1@huawei.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent b3dae109
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment