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

Commit d21bdd9c authored by Avaneesh Kumar Dwivedi's avatar Avaneesh Kumar Dwivedi
Browse files

sched: move logging process id in the rtb to sched



commit 'c3c9f764 ("arm64: mm: Log the process id in the rtb")'
introduced logging process id into the rtb buffer, it works fine for
64-bit systems but need additional change in assembly code for 32-bit
systems.

So moving it into scheduler to avoid dependency with architecture.

Change-Id: I20dd7ac5e7a76d8abfcc5dd2344c22a4c5dd6ffb
Signed-off-by: default avatarAvaneesh Kumar Dwivedi <akdwived@codeaurora.org>
parent a0772087
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -46,7 +46,6 @@ static inline void contextidr_thread_switch(struct task_struct *next)
	write_sysreg(pid, contextidr_el1);
	isb();

	uncached_logk(LOGK_CTXID, (void *)(u64)pid);

}

+2 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
#include <linux/kthread.h>

#include <asm/switch_to.h>
#include <linux/msm_rtb.h>
#include <asm/tlb.h>
#ifdef CONFIG_PARAVIRT
#include <asm/paravirt.h>
@@ -2916,7 +2917,7 @@ context_switch(struct rq *rq, struct task_struct *prev,
	 */
	rq_unpin_lock(rq, rf);
	spin_release(&rq->lock.dep_map, 1, _THIS_IP_);

	uncached_logk(LOGK_CTXID, (void *)(u64)next->pid);
	/* Here we just switch the register state and the stack. */
	switch_to(prev, next, prev);
	barrier();