correcting changelog entry. adding missing sched_bfs function
authorCorey O'Connor <coreyoconnor@gmail.com>
Wed, 21 Jul 2010 19:07:07 +0000 (12:07 -0700)
committerCorey O'Connor <coreyoconnor@gmail.com>
Wed, 21 Jul 2010 19:07:07 +0000 (12:07 -0700)
kernel-power-2.6.28/debian/changelog
kernel-power-2.6.28/debian/patches/bfs.patch

index db6abc4..9d1542b 100644 (file)
@@ -1,4 +1,4 @@
-kernel-bfs (2.6.28-maemo38-bfs) fremantle; urgency=low
+kernel-power-bfs (2.6.28-maemo38-bfs) fremantle; urgency=low
 
   * Apply BFS patches
 
index 79c6c85..098ba2a 100644 (file)
@@ -3270,6 +3270,30 @@ index 0000000..7cc1752
 +      return ns;
 +}
 +
++/*
++ * Return sum_exec_runtime for the thread group.
++ * In case the task is currently running, return the sum plus current's
++ * pending runtime that have not been accounted yet.
++ *
++ * Note that the thread group might have other running tasks as well,
++ * so the return value not includes other pending runtime that other
++ * running tasks might have.
++ */
++unsigned long long thread_group_sched_runtime(struct task_struct *p)
++{
++      struct task_cputime totals;
++      unsigned long flags;
++      struct rq *rq;
++      u64 ns;
++
++      rq = task_grq_lock(p, &flags);
++      thread_group_cputime(p, &totals);
++      ns = totals.sum_exec_runtime + do_task_delta_exec(p, rq);
++      task_grq_unlock(&flags);
++
++      return ns;
++}
++
 +/* Compatibility crap for removal */
 +void account_user_time(struct task_struct *p, cputime_t cputime,
 +                     cputime_t cputime_scaled)