Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4b35b78 authored by Abhilasha Rao's avatar Abhilasha Rao Committed by Todd Kjos
Browse files

ANDROID: GKI: loadavg: Export for get_avenrun



    - Add EXPORT_SYMBOL_GPL for get_avenrun() so that drivers
    be loadable as a module.

    - This API is required by loadable driver module
    to get Number of jobs in the run queue  (state R) or waiting
    for disk I/O(state D) averaged over 1 min.

Signed-off-by: default avatarAbhilasha Rao <abhilasha.hv@samsung.corp-partner.google.com>
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
Bug: 158067689
Change-Id: I56c12c908be068f78e16004df876be3bee0e7229
(cherry picked from commit 64ea6f327359a90eca8ec9fe2a8f0caba0188e45)
parent 527c28ed
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -75,6 +75,7 @@ void get_avenrun(unsigned long *loads, unsigned long offset, int shift)
	loads[1] = (avenrun[1] + offset) << shift;
	loads[2] = (avenrun[2] + offset) << shift;
}
EXPORT_SYMBOL_GPL(get_avenrun);

long calc_load_fold_active(struct rq *this_rq, long adjust)
{