Loading kernel/sched/walt.c +4 −7 Original line number Diff line number Diff line Loading @@ -655,14 +655,11 @@ static inline void inter_cluster_migration_fixup BUG_ON((s64)src_rq->nt_curr_runnable_sum < 0); } 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 Loading Loading
kernel/sched/walt.c +4 −7 Original line number Diff line number Diff line Loading @@ -655,14 +655,11 @@ static inline void inter_cluster_migration_fixup BUG_ON((s64)src_rq->nt_curr_runnable_sum < 0); } 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 Loading