Re: [PATCH 3/3] sched: Use clamp() and clamp_val() to make it more readable.

2014-03-18 Thread Dongsheng Yang
On 03/19/2014 10:16 AM, Steven Rostedt wrote: On Wed, 12 Mar 2014 18:26:44 +0800 Dongsheng Yang wrote: As Kees suggested, I use clamp() function to replace the if and else branch, making it more readable and modular. Suggested-by: Kees Cook Signed-off-by: Dongsheng Yang --- kernel/sched/c

Re: [PATCH 3/3] sched: Use clamp() and clamp_val() to make it more readable.

2014-03-18 Thread Steven Rostedt
On Wed, 12 Mar 2014 18:26:44 +0800 Dongsheng Yang wrote: > As Kees suggested, I use clamp() function to replace the if and > else branch, making it more readable and modular. > > Suggested-by: Kees Cook > Signed-off-by: Dongsheng Yang > --- > kernel/sched/core.c | 11 ++- > 1 file cha