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

Skip to content
Commit 76ea8810 authored by Alex Frid's avatar Alex Frid Committed by alexax66
Browse files

scheduler: Re-compute time-average nr_running on read



Re-compute time-average nr_running when it is read. This would
prevent reading stalled average value if there were no run-queue
changes for a long time. New average value is returned to the reader,
but not stored to avoid concurrent writes. Light-weight sequential
counter synchronization is used to assure data consistency for
re-computing average.

Change-Id: I08de26087414d6663633c723ddfcbf1099a01ce2
Signed-off-by: default avatarAlex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/108072


Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: default avatarRyan Wong <ryanw@nvidia.com>
Tested-by: default avatarRyan Wong <ryanw@nvidia.com>

Original commit: https://github.com/halaszk/Perseus-halaszk-universal5433/commit/adf51e6f6fa7478ef27854c5fc67aaaaddb5406e
parent 213071b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment