Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4beaea6 authored by Maulik Shah's avatar Maulik Shah
Browse files

soc: qcom: rpm_rail_stats: Add support for lpcx and lpmx rail stats



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: default avatarMaulik Shah <mkshah@codeaurora.org>
parent f44d9e36
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);