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

Commit 52a9027f authored by Sridhar Arra's avatar Sridhar Arra
Browse files

mmc: core: Added ftrace log and ring buffer log in mmc_set_ios



Added ftrace log and ring buffer log in mmc_set_ios.

Change-Id: If91d6f3b9381b73a64249e45f2a46e8131a9b9dc
Signed-off-by: default avatarSridhar Arra <sarra@codeaurora.org>
parent c49400a9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1836,6 +1836,12 @@ static inline void mmc_set_ios(struct mmc_host *host)
				mmc_hostname(host), ios->old_rate / 1000,
				ios->clock / 1000, jiffies_to_msecs(
					(long)jiffies - (long)ios->clk_ts));
			trace_mmc_clk(trace_info);
			mmc_log_string(host,
				"freq_KHz %d --> %d | t = %d",
				ios->old_rate / 1000,
				ios->clock / 1000, jiffies_to_msecs(
					(long)jiffies - (long)ios->clk_ts));
		}
		ios->old_rate = ios->clock;
		ios->clk_ts = jiffies;