aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChakravarty, Souvik K <souvik.k.chakravarty@intel.com>2017-11-24 08:34:44 -0500
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-11-27 06:39:11 -0500
commitc622cbe5d11657a12c473356826017fed0c7669e (patch)
tree942ed61565d0d94796224d44cb1ac9b2b6d49f6b
parentffd623d4c5315a9767a5ee183159baf7295219a6 (diff)
platform/x86: intel_telemetry: Remove redundancies
This patch removes unnecessary header files and newlines. It also fixes some alignment issues. Signed-off-by: Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r--drivers/platform/x86/intel_telemetry_debugfs.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86/intel_telemetry_debugfs.c
index 97aae982d2bd..ffd0474b0531 100644
--- a/drivers/platform/x86/intel_telemetry_debugfs.c
+++ b/drivers/platform/x86/intel_telemetry_debugfs.c
@@ -23,7 +23,6 @@
23 */ 23 */
24#include <linux/debugfs.h> 24#include <linux/debugfs.h>
25#include <linux/device.h> 25#include <linux/device.h>
26#include <linux/io.h>
27#include <linux/module.h> 26#include <linux/module.h>
28#include <linux/pci.h> 27#include <linux/pci.h>
29#include <linux/seq_file.h> 28#include <linux/seq_file.h>
@@ -32,11 +31,10 @@
32#include <asm/cpu_device_id.h> 31#include <asm/cpu_device_id.h>
33#include <asm/intel-family.h> 32#include <asm/intel-family.h>
34#include <asm/intel_pmc_ipc.h> 33#include <asm/intel_pmc_ipc.h>
35#include <asm/intel_punit_ipc.h>
36#include <asm/intel_telemetry.h> 34#include <asm/intel_telemetry.h>
37 35
38#define DRIVER_NAME "telemetry_soc_debugfs" 36#define DRIVER_NAME "telemetry_soc_debugfs"
39#define DRIVER_VERSION "1.0.0" 37#define DRIVER_VERSION "1.0.0"
40 38
41/* ApolloLake SoC Event-IDs */ 39/* ApolloLake SoC Event-IDs */
42#define TELEM_APL_PSS_PSTATES_ID 0x2802 40#define TELEM_APL_PSS_PSTATES_ID 0x2802
@@ -246,7 +244,6 @@ static struct telem_ioss_pg_info telem_apl_ioss_pg_data[] = {
246 {"PRTC", 25}, 244 {"PRTC", 25},
247}; 245};
248 246
249
250struct telemetry_debugfs_conf { 247struct telemetry_debugfs_conf {
251 struct telemetry_susp_stats suspend_stats; 248 struct telemetry_susp_stats suspend_stats;
252 struct dentry *telemetry_dbg_dir; 249 struct dentry *telemetry_dbg_dir;
@@ -381,7 +378,6 @@ static int telem_pss_states_show(struct seq_file *s, void *unused)
381 TELEM_APL_MASK_PCS_STATE; 378 TELEM_APL_MASK_PCS_STATE;
382 } 379 }
383 380
384
385 TELEM_CHECK_AND_PARSE_EVTS(conf->pss_idle_id, 381 TELEM_CHECK_AND_PARSE_EVTS(conf->pss_idle_id,
386 conf->pss_idle_evts - 1, 382 conf->pss_idle_evts - 1,
387 pss_idle, evtlog[index].telem_evtlog, 383 pss_idle, evtlog[index].telem_evtlog,
@@ -401,7 +397,6 @@ static int telem_pss_states_show(struct seq_file *s, void *unused)
401 conf->pcs_s0ix_blkd_data, 397 conf->pcs_s0ix_blkd_data,
402 TELEM_MASK_BYTE); 398 TELEM_MASK_BYTE);
403 399
404
405 TELEM_CHECK_AND_PARSE_EVTS(conf->pss_wakeup_id, 400 TELEM_CHECK_AND_PARSE_EVTS(conf->pss_wakeup_id,
406 conf->pss_wakeup_evts, 401 conf->pss_wakeup_evts,
407 pss_s0ix_wakeup, 402 pss_s0ix_wakeup,
@@ -494,7 +489,6 @@ static const struct file_operations telem_pss_ops = {
494 .release = single_release, 489 .release = single_release,
495}; 490};
496 491
497
498static int telem_ioss_states_show(struct seq_file *s, void *unused) 492static int telem_ioss_states_show(struct seq_file *s, void *unused)
499{ 493{
500 struct telemetry_evtlog evtlog[TELEM_MAX_OS_ALLOCATED_EVENTS]; 494 struct telemetry_evtlog evtlog[TELEM_MAX_OS_ALLOCATED_EVENTS];
@@ -613,7 +607,7 @@ static int telem_soc_states_show(struct seq_file *s, void *unused)
613 (u64)(conf->suspend_stats.deep_res*10)/192); 607 (u64)(conf->suspend_stats.deep_res*10)/192);
614 608
615 seq_printf(s, "TOTAL S0IX\t\t\t %10u\t %10llu\n", s0ix_total_ctr, 609 seq_printf(s, "TOTAL S0IX\t\t\t %10u\t %10llu\n", s0ix_total_ctr,
616 (u64)(s0ix_total_res*10/192)); 610 (u64)(s0ix_total_res*10/192));
617 seq_puts(s, "\n-------------------------------------------------\n"); 611 seq_puts(s, "\n-------------------------------------------------\n");
618 seq_puts(s, "\t\tDEVICE STATES\n"); 612 seq_puts(s, "\t\tDEVICE STATES\n");
619 seq_puts(s, "-------------------------------------------------\n"); 613 seq_puts(s, "-------------------------------------------------\n");
@@ -758,7 +752,6 @@ static const struct file_operations telem_pss_trc_verb_ops = {
758 .release = single_release, 752 .release = single_release,
759}; 753};
760 754
761
762static int telem_ioss_trc_verb_show(struct seq_file *s, void *unused) 755static int telem_ioss_trc_verb_show(struct seq_file *s, void *unused)
763{ 756{
764 u32 verbosity; 757 u32 verbosity;