]> git.baikalelectronics.ru Git - kernel.git/commit
lib/percpu_counter.c: use helper macro abs()
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 16 Oct 2020 03:11:28 +0000 (20:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:20 +0000 (11:11 -0700)
commit7ebcb3e0b8bbe43f97b4817b0e13d669c1d41b1d
treef97127ed5e09d696a15951631f8752eaabee7cf2
parentf23d6902477bfe496bdc5a6da7755040432e6b96
lib/percpu_counter.c: use helper macro abs()

Use helper macro abs() to simplify the "x >= t || x <= -t" cmp.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200927122746.5964-1-linmiaohe@huawei.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/percpu_counter.c