Loading kernel/sched/hmp.c +4 −7 Original line number Diff line number Diff line Loading @@ -2081,14 +2081,11 @@ static u32 top_task_load(struct rq *rq) } } static int load_to_index(u32 load) static u32 load_to_index(u32 load) { if (load < sched_load_granule) return 0; else if (load >= sched_ravg_window) return NUM_LOAD_INDICES - 1; else return load / sched_load_granule; u32 index = load / sched_load_granule; return min(index, (u32)(NUM_LOAD_INDICES - 1)); } static void update_top_tasks(struct task_struct *p, struct rq *rq, Loading Loading
kernel/sched/hmp.c +4 −7 Original line number Diff line number Diff line Loading @@ -2081,14 +2081,11 @@ static u32 top_task_load(struct rq *rq) } } static int load_to_index(u32 load) static u32 load_to_index(u32 load) { if (load < sched_load_granule) return 0; else if (load >= sched_ravg_window) return NUM_LOAD_INDICES - 1; else return load / sched_load_granule; u32 index = load / sched_load_granule; return min(index, (u32)(NUM_LOAD_INDICES - 1)); } static void update_top_tasks(struct task_struct *p, struct rq *rq, Loading