android_kernel_sony_sdm845/include/linux/sched
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pavankumar Kondeti 3066bc4e33 sched: move task_util() to sched.h
The same task_util() inline function is defined in fair.c and rt.c.
Move it to a common header file.

While at it, make sure that this function works for 32 bit also.
Previously,

util = ((u64)demand)<<10/sched_ravg_window

This division of two 64 bit quantities gives a linker error on 32
bit system. The same result can be achieved without type casting
the demand to 64 bit and without losing precision by making it

util = demand/(sched_ravg_window>>10).

Change-Id: Iffc2b6b484fbcdac8d6f9739f96798a8d8e035c5
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-08-04 06:35:39 +05:30
..
core_ctl.h sched/core_ctl: Move header file to global location 2017-02-07 14:50:58 -08:00
deadline.h sched/deadline: Unify dl_time_before() usage 2015-09-23 09:51:25 +02:00
prio.h
rt.h sched: Handle priority boosted tasks proper in setscheduler() 2015-05-08 11:53:55 +02:00
sysctl.h sched: move task_util() to sched.h 2017-08-04 06:35:39 +05:30