Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100178
b: refs/heads/master
c: f333fdc
h: refs/heads/master
v: v3
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Jun 6, 2008
1 parent e42debd commit ea17818
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 45c01e824991b2dd0a332e19efc4901acb31209f
refs/heads/master: f333fdc9098b71e2687e4e9b6349fcb352960d66
8 changes: 5 additions & 3 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4134,7 +4134,7 @@ asmlinkage void __sched schedule(void)
struct task_struct *prev, *next;
unsigned long *switch_count;
struct rq *rq;
int cpu;
int cpu, hrtick = sched_feat(HRTICK);

need_resched:
preempt_disable();
Expand All @@ -4149,7 +4149,8 @@ asmlinkage void __sched schedule(void)

schedule_debug(prev);

hrtick_clear(rq);
if (hrtick)
hrtick_clear(rq);

/*
* Do the rq-clock update outside the rq lock:
Expand Down Expand Up @@ -4197,7 +4198,8 @@ asmlinkage void __sched schedule(void)
} else
spin_unlock_irq(&rq->lock);

hrtick_set(rq);
if (hrtick)
hrtick_set(rq);

if (unlikely(reacquire_kernel_lock(current) < 0))
goto need_resched_nonpreemptible;
Expand Down

0 comments on commit ea17818

Please sign in to comment.