aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/async.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2014-10-09 15:30:15 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-09 22:26:03 -0400
commitc185b07fc9f24d52a864376ed22a6d84384b0c53 (patch)
tree03822f22af12a7b905ac7dde19406f72a9ba47a8 /kernel/async.c
parentinclude/linux/kernel.h: rewrite min3, max3 and clamp using min and max (diff)
downloadlinux-dev-c185b07fc9f24d52a864376ed22a6d84384b0c53.tar.xz
linux-dev-c185b07fc9f24d52a864376ed22a6d84384b0c53.zip
include/linux/kernel.h: deduplicate code implementing clamp* macros
Instead of open-coding clamp_t macro min_t and max_t the way clamp macro does and instead of open-coding clamp_val simply use clamp_t. Furthermore, normalise argument naming in the macros to be lo and hi. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Cc: Mark Rustad <mark.d.rustad@intel.com> Cc: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@intel.com> Cc: Hagen Paul Pfeifer <hagen@jauu.net> Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions