Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158320
b: refs/heads/master
c: 54d35f2
h: refs/heads/master
v: v3
  • Loading branch information
Hitoshi Mitake authored and Ingo Molnar committed Jun 29, 2009
1 parent c7461e1 commit 9eaebc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 348b346b238d9c0e5694c8d0b835a099cb383835
refs/heads/master: 54d35f29f49224d86b994acb6e5969b9ba09022d
5 changes: 3 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ static inline int cpu_of(struct rq *rq)
#define this_rq() (&__get_cpu_var(runqueues))
#define task_rq(p) cpu_rq(task_cpu(p))
#define cpu_curr(cpu) (cpu_rq(cpu)->curr)
#define raw_rq() (&__raw_get_cpu_var(runqueues))

inline void update_rq_clock(struct rq *rq)
{
Expand Down Expand Up @@ -6669,7 +6670,7 @@ EXPORT_SYMBOL(yield);
*/
void __sched io_schedule(void)
{
struct rq *rq = &__raw_get_cpu_var(runqueues);
struct rq *rq = raw_rq();

delayacct_blkio_start();
atomic_inc(&rq->nr_iowait);
Expand All @@ -6681,7 +6682,7 @@ EXPORT_SYMBOL(io_schedule);

long __sched io_schedule_timeout(long timeout)
{
struct rq *rq = &__raw_get_cpu_var(runqueues);
struct rq *rq = raw_rq();
long ret;

delayacct_blkio_start();
Expand Down

0 comments on commit 9eaebc1

Please sign in to comment.