Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100478
b: refs/heads/master
c: 8ac0fca
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 23, 2008
1 parent 7d87745 commit 2c49964
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 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: 86387f7ee5d3273ff4859e2c64ce656639b6ca65
refs/heads/master: 8ac0fca4ccb355ce50471d7aa3f10f5900b28b95
6 changes: 0 additions & 6 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -2130,17 +2130,11 @@ ftrace_ctx_switch(struct task_struct *prev, struct task_struct *next)
#ifdef CONFIG_SCHED_TRACER
extern void
ftrace_wake_up_task(struct task_struct *wakee, struct task_struct *curr);
extern void
ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr);
#else
static inline void
ftrace_wake_up_task(struct task_struct *wakee, struct task_struct *curr)
{
}
static inline void
ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr)
{
}
#endif

extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask);
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2613,7 +2613,7 @@ void wake_up_new_task(struct task_struct *p, unsigned long clone_flags)
p->sched_class->task_new(rq, p);
inc_nr_running(rq);
}
ftrace_wake_up_new_task(p, rq->curr);
ftrace_wake_up_task(p, rq->curr);
check_preempt_curr(rq, p);
#ifdef CONFIG_SMP
if (p->sched_class->task_wake_up)
Expand Down
13 changes: 3 additions & 10 deletions trunk/kernel/trace/trace_sched_wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,20 +201,13 @@ wakeup_check_start(struct trace_array *tr, struct task_struct *p,
atomic_dec(&tr->data[cpu]->disabled);
}

void
wakeup_sched_wakeup(struct task_struct *wakee, struct task_struct *curr)
void wakeup_sched_wakeup(struct task_struct *wakee, struct task_struct *curr)
{
if (likely(!tracer_enabled))
return;

wakeup_check_start(wakeup_trace, wakee, curr);
}

void
ftrace_wake_up_new_task(struct task_struct *wakee, struct task_struct *curr)
{
if (likely(!tracer_enabled))
return;
tracing_record_cmdline(curr);
tracing_record_cmdline(wakee);

wakeup_check_start(wakeup_trace, wakee, curr);
}
Expand Down

0 comments on commit 2c49964

Please sign in to comment.