Skip to content

Commit

Permalink
tracing, power-trace: make it build even if the power-tracer is turne…
Browse files Browse the repository at this point in the history
…d off

Impact: build fix

The 'struct power_trace' definition is needed (for the event tracer) even if
the power-tracer plugin is turned off in the .config.

Cc: Steven Rostedt <srostedt@redhat.com>
LKML-Reference: <20090306104106.GF31042@elte.hu>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Mar 6, 2009
1 parent 10dd3eb commit af438c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/trace/power.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ enum {
};

struct power_trace {
#ifdef CONFIG_POWER_TRACER
ktime_t stamp;
ktime_t end;
int type;
int state;
#endif
};

DECLARE_TRACE(power_start,
Expand Down

0 comments on commit af438c0

Please sign in to comment.