OSDN Git Service

soc: qcom: rpm_rail_stats: Add support for lpcx and lpmx rail stats
authorMaulik Shah <mkshah@codeaurora.org>
Mon, 20 Feb 2017 06:24:13 +0000 (11:54 +0530)
committerMaulik Shah <mkshah@codeaurora.org>
Mon, 20 Feb 2017 07:33:48 +0000 (13:03 +0530)
RPM has added support for lpcx and lpmx rails stats. Increase rail
buffer length to print stats for these rails.

Change-Id: I565786d847e09f325ae43e9465d744b111e7fa2c
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
drivers/soc/qcom/rpm_rail_stats.c

index d80a9fc..9ef96dc 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "rpm_stats.h"
 
-#define RPM_RAIL_BUF_LEN 600
+#define RPM_RAIL_BUF_LEN 1300
 
 #define SNPRINTF(buf, size, format, ...) \
 { \
@@ -118,7 +118,7 @@ static int msm_rpm_rail_type_copy(void __iomem **base, char **buf, int count)
        rail[NAMELEN - 1] = '\0';
        memcpy(rail, &rt.rail, NAMELEN - 1);
        SNPRINTF(*buf, count,
-               "\trail:%-2s num_corners:%-2u current_corner:%-2u last_entered:%-8u\n",
+               "\trail:%-2s \tnum_corners:%-2u current_corner:%-2u last_entered:%-8u\n",
                rail, rt.num_corners, rt.current_corner, rt.last_entered);
 
        *base += sizeof(rt);