Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146095
b: refs/heads/master
c: de1d728
h: refs/heads/master
i:
  146093: 662feb9
  146091: 3d2e77b
  146087: 7553ba8
  146079: 01b5f1b
v: v3
  • Loading branch information
Mathieu Desnoyers authored and Ingo Molnar committed May 6, 2009
1 parent e360b0a commit 02f2088
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 20c8928abe70e204bd077ab6cfe23002d7788983
refs/heads/master: de1d7286060430e79a1d50ad6e5fee8fe863c5f6
6 changes: 3 additions & 3 deletions trunk/include/trace/events/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ TRACE_EVENT(sched_switch,
*/
TRACE_EVENT(sched_migrate_task,

TP_PROTO(struct task_struct *p, int orig_cpu, int dest_cpu),
TP_PROTO(struct task_struct *p, int dest_cpu),

TP_ARGS(p, orig_cpu, dest_cpu),
TP_ARGS(p, dest_cpu),

TP_STRUCT__entry(
__array( char, comm, TASK_COMM_LEN )
Expand All @@ -196,7 +196,7 @@ TRACE_EVENT(sched_migrate_task,
memcpy(__entry->comm, p->comm, TASK_COMM_LEN);
__entry->pid = p->pid;
__entry->prio = p->prio;
__entry->orig_cpu = orig_cpu;
__entry->orig_cpu = task_cpu(p);
__entry->dest_cpu = dest_cpu;
),

Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu)

clock_offset = old_rq->clock - new_rq->clock;

trace_sched_migrate_task(p, task_cpu(p), new_cpu);
trace_sched_migrate_task(p, new_cpu);

#ifdef CONFIG_SCHEDSTATS
if (p->se.wait_start)
Expand Down

0 comments on commit 02f2088

Please sign in to comment.