The variable type of util_avg is unsigned long. Fix return type
of task util to avoid data loss.
Change-Id: I463b9fa65f018f4d98804df6f3c62fbbb6ff0951
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
#include "ems.h"
#include "../sched.h"
-int task_util(struct task_struct *p)
+unsigned long task_util(struct task_struct *p)
{
if (rt_task(p))
return p->rt.avg.util_avg;
static inline int group_balancing(struct task_struct *p) { return -1; }
#endif
-extern int task_util(struct task_struct *p);
+extern unsigned long task_util(struct task_struct *p);
extern int cpu_util_wake(int cpu, struct task_struct *p);
extern unsigned long task_util_est(struct task_struct *p);
extern inline unsigned int get_cpu_mips(unsigned int cpu);