Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74707
b: refs/heads/master
c: 8ced5f6
h: refs/heads/master
i:
  74705: 648fa0c
  74703: 5897c4e
v: v3
  • Loading branch information
Ingo Molnar committed Dec 7, 2007
1 parent 5f2e3d6 commit 42a583b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 5f9fa8a62d6a98f5cb2ee2e00b85bfe95e45888d
refs/heads/master: 8ced5f69e4bc09adcc6442e090e2e64c197246cf
7 changes: 6 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,12 @@ unsigned long long cpu_clock(int cpu)

local_irq_save(flags);
rq = cpu_rq(cpu);
update_rq_clock(rq);
/*
* Only call sched_clock() if the scheduler has already been
* initialized (some code might call cpu_clock() very early):
*/
if (rq->idle)
update_rq_clock(rq);
now = rq->clock;
local_irq_restore(flags);

Expand Down

0 comments on commit 42a583b

Please sign in to comment.