aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSouvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>2016-01-20 01:50:46 -0500
committerDarren Hart <dvhart@linux.intel.com>2016-01-24 13:14:53 -0500
commit7885f2f94489d566559274891cc1400cbc059b10 (patch)
treec894690f62a893f7c019de714abed27437c6b106
parent404a47410c26a115123885977053e9a1a4460929 (diff)
intel_telemetry_debugfs: Fix unused warnings in telemetry debugfs
This patch fixes compile time warnings when CONFIG_PM_SLEEP is undefined. In this case sleep related counters are unused. Signed-off-by: Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--drivers/platform/x86/intel_telemetry_debugfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86/intel_telemetry_debugfs.c
index 5b31d1548c07..f5134acd6ff0 100644
--- a/drivers/platform/x86/intel_telemetry_debugfs.c
+++ b/drivers/platform/x86/intel_telemetry_debugfs.c
@@ -96,9 +96,11 @@
96 } \ 96 } \
97} 97}
98 98
99#ifdef CONFIG_PM_SLEEP
99static u8 suspend_prep_ok; 100static u8 suspend_prep_ok;
100static u32 suspend_shlw_ctr_temp, suspend_deep_ctr_temp; 101static u32 suspend_shlw_ctr_temp, suspend_deep_ctr_temp;
101static u64 suspend_shlw_res_temp, suspend_deep_res_temp; 102static u64 suspend_shlw_res_temp, suspend_deep_res_temp;
103#endif
102 104
103struct telemetry_susp_stats { 105struct telemetry_susp_stats {
104 u32 shlw_swake_ctr; 106 u32 shlw_swake_ctr;