]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/core: use abs() instead of diff_of()
authorXin Hao <xhao@linux.alibaba.com>
Fri, 14 Jan 2022 22:09:40 +0000 (14:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:32 +0000 (16:30 +0200)
commit48c0335856126c06192f171060dc2f9faddc6463
tree5ea2427222abde3ba6b11243d4038ab138d7609e
parent3cddc9f53efcc10e16e34eba200a5710a72ae06d
mm/damon/core: use abs() instead of diff_of()

In kernel, we can use abs(a - b) to get the absolute value, So there is no
need to redefine a new one.

Link: https://lkml.kernel.org/r/b24e7b82d9efa90daf150d62dea171e19390ad0b.1636989871.git.xhao@linux.alibaba.com
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/core.c