scx-lavd: make the comments in update_sys_cpu_load() clear

The current description is a bit confusing, so update the comments for clarity.

Signed-off-by: Changwoo Min <changwoo@igalia.com>
This commit is contained in:
Changwoo Min 2024-03-28 06:45:57 +09:00
parent 83169481a6
commit 31157ebc81

View File

@ -681,9 +681,9 @@ static void update_sys_cpu_load(void)
/*
* Accumulate task's latency criticlity information.
*
* Updating cpuc->* is racy. However, it could degrade the
* accuracy a little bit in very rare cases, so we do embrace
* embrace for performance on purpose.
* While updating cpu->* is racy, the resulting impact on
* accuracy should be small and very rare and thus should be
* fine.
*/
sum_lat_cri += cpuc->sum_lat_cri;
cpuc->sum_lat_cri = 0;