Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350127
b: refs/heads/master
c: 57d2aa0
h: refs/heads/master
i:
  350125: eff662a
  350123: c484754
  350119: 93a7637
  350111: 5237ada
v: v3
  • Loading branch information
Ying Xue authored and Ingo Molnar committed Jan 25, 2013
1 parent 4091530 commit 4f15255
Show file tree
Hide file tree
Showing 3 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: 16c8f1c72ece3871a6c93003cd888fc2d003a7eb
refs/heads/master: 57d2aa00dcec67afa52478730f2b524521af14fb
1 change: 1 addition & 0 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,7 @@ struct sched_entity {
struct sched_rt_entity {
struct list_head run_list;
unsigned long timeout;
unsigned long watchdog_stamp;
unsigned int time_slice;

struct sched_rt_entity *back;
Expand Down
6 changes: 5 additions & 1 deletion trunk/kernel/sched/rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1988,7 +1988,11 @@ static void watchdog(struct rq *rq, struct task_struct *p)
if (soft != RLIM_INFINITY) {
unsigned long next;

p->rt.timeout++;
if (p->rt.watchdog_stamp != jiffies) {
p->rt.timeout++;
p->rt.watchdog_stamp = jiffies;
}

next = DIV_ROUND_UP(min(soft, hard), USEC_PER_SEC/HZ);
if (p->rt.timeout > next)
p->cputime_expires.sched_exp = p->se.sum_exec_runtime;
Expand Down

0 comments on commit 4f15255

Please sign in to comment.