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

Commit 4d8ce4ff authored by Charan Teja Reddy's avatar Charan Teja Reddy Committed by Sudarshan Rajagopalan
Browse files

soc: qcom: mem-offline: place debug messages properly



Place debug message properly so that printing time of these messages
won't be added to the mem-offline driver stats.

Change-Id: I1aa07eb425a3dc6bac6b7a280657a0830ababb7c
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
Signed-off-by: default avatarSudarshan Rajagopalan <sudaraja@codeaurora.org>
parent afaaae7c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -140,10 +140,11 @@ static int mem_event_callback(struct notifier_block *self,

		break;
	case MEM_ONLINE:
		pr_info("mem-offline: Onlined memory block mem%lu\n", sec_nr);
		delay = ktime_ms_delta(ktime_get(), cur);
		record_stat(sec_nr, delay, MEMORY_ONLINE);
		cur = 0;
		pr_info("mem-offline: Onlined memory block mem%pK\n",
			(void *)sec_nr);
		break;
	case MEM_GOING_OFFLINE:
		pr_debug("mem-offline: MEM_GOING_OFFLINE : start = 0x%llx end = 0x%llx\n",
@@ -153,8 +154,6 @@ static int mem_event_callback(struct notifier_block *self,
		cur = ktime_get();
		break;
	case MEM_OFFLINE:
		pr_info("mem-offline: Offlined memory block mem%lu\n", sec_nr);

		if (aop_send_msg(__pfn_to_phys(start), false))
			pr_err("PASR: AOP offline request addr:0x%llx failed\n",
			       __pfn_to_phys(start));
@@ -162,6 +161,8 @@ static int mem_event_callback(struct notifier_block *self,
		delay = ktime_ms_delta(ktime_get(), cur);
		record_stat(sec_nr, delay, MEMORY_OFFLINE);
		cur = 0;
		pr_info("mem-offline: Offlined memory block mem%pK\n",
			(void *)sec_nr);
		break;
	case MEM_CANCEL_ONLINE:
		pr_info("mem-offline: MEM_CANCEL_ONLINE: start = 0x%llx end = 0x%llx\n",