Skip to content

Commit af438c0

Browse files
author
Ingo Molnar
committed
tracing, power-trace: make it build even if the power-tracer is turned 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 <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 10dd3eb commit af438c0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/trace/power.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ enum {
1111
};
1212

1313
struct power_trace {
14-
#ifdef CONFIG_POWER_TRACER
1514
ktime_t stamp;
1615
ktime_t end;
1716
int type;
1817
int state;
19-
#endif
2018
};
2119

2220
DECLARE_TRACE(power_start,

0 commit comments

Comments
 (0)