Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147372
b: refs/heads/master
c: f1f9b3b
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Apr 20, 2009
1 parent 9ed397a commit 15019ff
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 125e702b09a28a502e145fb434678ee27720fc48
refs/heads/master: f1f9b3b1795da8625e0e6096813c9d18d4a344ce
1 change: 0 additions & 1 deletion trunk/include/linux/kernel_stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ static inline unsigned int kstat_irqs(unsigned int irq)
/*
* Lock/unlock the current runqueue - to extract task statistics:
*/
extern unsigned long long __task_delta_exec(struct task_struct *tsk, int update);
extern unsigned long long task_delta_exec(struct task_struct *);

extern void account_user_time(struct task_struct *, cputime_t, cputime_t);
Expand Down
23 changes: 0 additions & 23 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4546,29 +4546,6 @@ DEFINE_PER_CPU(struct kernel_stat, kstat);

EXPORT_PER_CPU_SYMBOL(kstat);

/*
* Return any ns on the sched_clock that have not yet been banked in
* @p in case that task is currently running.
*/
unsigned long long __task_delta_exec(struct task_struct *p, int update)
{
s64 delta_exec;
struct rq *rq;

rq = task_rq(p);
WARN_ON_ONCE(!runqueue_is_locked());
WARN_ON_ONCE(!task_current(rq, p));

if (update)
update_rq_clock(rq);

delta_exec = rq->clock - p->se.exec_start;

WARN_ON_ONCE(delta_exec < 0);

return delta_exec;
}

/*
* Return any ns on the sched_clock that have not yet been banked in
* @p in case that task is currently running.
Expand Down

0 comments on commit 15019ff

Please sign in to comment.