From 5ac6721474604c15b65627bd2178084a130256ce Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 14 Oct 2015 10:47:25 +0200 Subject: uid_cputime: don't use task->power as it is not available in 3.0 Change-Id: Id55306a358bc782f753a8a756a3cbb1665b5146f --- drivers/misc/uid_cputime.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/misc/uid_cputime.c b/drivers/misc/uid_cputime.c index 34929f26..8b363ef 100644 --- a/drivers/misc/uid_cputime.c +++ b/drivers/misc/uid_cputime.c @@ -103,12 +103,16 @@ static int uid_stat_show(struct seq_file *m, void *v) } /* if this task is exiting, we have already accounted for the * time and power. */ +#if 0 /* 3.0 fix */ if (task->cpu_power == ULLONG_MAX) continue; +#endif task_times(task, &utime, &stime); uid_entry->active_utime += utime; uid_entry->active_stime += stime; +#if 0 /* 3.0 fix */ uid_entry->active_power += task->cpu_power; +#endif } while_each_thread(temp, task); read_unlock(&tasklist_lock); @@ -215,8 +219,10 @@ static int process_notifier(struct notifier_block *self, task_times(task, &utime, &stime); uid_entry->utime += utime; uid_entry->stime += stime; +#if 0 /* 3.0 fix */ uid_entry->power += task->cpu_power; task->cpu_power = ULLONG_MAX; +#endif exit: mutex_unlock(&uid_lock); -- cgit v1.1