Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140979
b: refs/heads/master
c: 62524d5
h: refs/heads/master
i:
  140977: 6553988
  140975: 1eb8039
v: v3
  • Loading branch information
Steven Rostedt committed Mar 18, 2009
1 parent 335a3c1 commit c204475
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 5fec6ddcb43a91aa9a254c8ecf174c803de6f07e
refs/heads/master: 62524d55e5b9ffe36e3bf3dd7a594114f150b449
8 changes: 6 additions & 2 deletions trunk/kernel/trace/trace_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,14 @@ static int tracing_power_register(void)
static void start_power_trace(struct trace_array *tr)
{
trace_power_enabled = 1;
tracing_power_register();
}

static void stop_power_trace(struct trace_array *tr)
{
trace_power_enabled = 0;
}

static void power_trace_reset(struct trace_array *tr)
{
trace_power_enabled = 0;
unregister_trace_power_start(probe_power_start);
Expand Down Expand Up @@ -188,7 +192,7 @@ static struct tracer power_tracer __read_mostly =
.init = power_trace_init,
.start = start_power_trace,
.stop = stop_power_trace,
.reset = stop_power_trace,
.reset = power_trace_reset,
.print_line = power_print_line,
};

Expand Down

0 comments on commit c204475

Please sign in to comment.