Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140797
b: refs/heads/master
c: 5e01cb6
h: refs/heads/master
i:
  140795: 21f84a6
v: v3
  • Loading branch information
Markus Metzger authored and Ingo Molnar committed Feb 24, 2009
1 parent 846401b commit cf16d80
Show file tree
Hide file tree
Showing 2 changed files with 4 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: a7f4463e0300b5135c0f0caf7c34a0529405f986
refs/heads/master: 5e01cb695d29619dd551bac7d6aa4ef1dc8ebc95
7 changes: 3 additions & 4 deletions trunk/kernel/trace/trace_hw_branches.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,18 @@ static struct notifier_block bts_hotcpu_notifier __cpuinitdata = {
.notifier_call = bts_hotcpu_handler
};

static int __cpuinit bts_trace_init(struct trace_array *tr)
static int bts_trace_init(struct trace_array *tr)
{
hw_branch_trace = tr;

register_hotcpu_notifier(&bts_hotcpu_notifier);
bts_trace_start(tr);

return 0;
}

static void __cpuinit bts_trace_reset(struct trace_array *tr)
static void bts_trace_reset(struct trace_array *tr)
{
bts_trace_stop(tr);
unregister_hotcpu_notifier(&bts_hotcpu_notifier);
}

static void bts_trace_print_header(struct seq_file *m)
Expand Down Expand Up @@ -299,6 +297,7 @@ struct tracer bts_tracer __read_mostly =

__init static int init_bts_trace(void)
{
register_hotcpu_notifier(&bts_hotcpu_notifier);
return register_tracer(&bts_tracer);
}
device_initcall(init_bts_trace);

0 comments on commit cf16d80

Please sign in to comment.