Commit a32703d7 authored by SeongJae Park's avatar SeongJae Park Committed by Suren Baghdasaryan
Browse files

BACKPORT: mm/damon/core: introduce nr_accesses_bp

Add yet another representation of the access rate of each region, namely
nr_accesses_bp.  It is just same to the nr_accesses but represents the
value in basis point (1 in 10,000), and updated at once in every
aggregation interval.  That is, moving_accesses_bp is just nr_accesses *
10000.  This may seems useless at the moment.  However, it will be useful
for representing less than one nr_accesses value that will be needed to
make moving sum-based nr_accesses.

Link: https://lkml.kernel.org/r/20230915025251.72816-6-sj@kernel.org


Signed-off-by: default avatarSeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 80333828)
[daiyang5: Resolved minor conflict in mm/damon/core.c ]

Bug:407463672

Change-Id: Iaf9573e21475b1f3455fa602f86d316aa56b29ca
Signed-off-by: default avatardaiyang5 <daiyang5@xiaomi.com>
parent 02ec8575
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment