Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58287
b: refs/heads/master
c: 1b9f19c
h: refs/heads/master
i:
  58285: 2c733a4
  58283: 45b5a95
  58279: f593698
  58271: fa36a9d
v: v3
  • Loading branch information
Ingo Molnar committed Jul 9, 2007
1 parent 6a8740d commit fe2375f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 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: bb29ab26863c022743143f27956cc0ca362f258c
refs/heads/master: 1b9f19c2125dd1021b9327111dc40b14b557ee12
21 changes: 14 additions & 7 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ unsigned long long __attribute__((weak)) sched_clock(void)
return (unsigned long long)jiffies * (1000000000 / HZ);
}

/*
* CPU frequency is/was unstable - start new by setting prev_clock_raw:
*/
void sched_clock_unstable_event(void)
{
}

/*
* Convert user-nice values [ -20 ... 0 ... 19 ]
* to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],
Expand Down Expand Up @@ -629,6 +622,20 @@ static inline struct rq *this_rq_lock(void)
return rq;
}

/*
* CPU frequency is/was unstable - start new by setting prev_clock_raw:
*/
void sched_clock_unstable_event(void)
{
unsigned long flags;
struct rq *rq;

rq = task_rq_lock(current, &flags);
rq->prev_clock_raw = sched_clock();
rq->clock_unstable_events++;
task_rq_unlock(rq, &flags);
}

/*
* resched_task - mark a task 'to be rescheduled now'.
*
Expand Down

0 comments on commit fe2375f

Please sign in to comment.