From b6d7ae331ec58b4415fcccaeb641188bb121b514 Mon Sep 17 00:00:00 2001 From: Rohit Agarwal Date: Fri, 17 Nov 2023 11:57:45 +0530 Subject: [PATCH] soc: qcom: Don't print thread info for arm arch Don't print thread info for arm arch as it is not supported for 32 bit architecture. Change-Id: I9327675d85670fed78e1778c993ab6fa574c972a Signed-off-by: Rohit Agarwal --- drivers/soc/qcom/minidump_log.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/soc/qcom/minidump_log.c b/drivers/soc/qcom/minidump_log.c index 921e2a6ea63b..ac26549bf15e 100644 --- a/drivers/soc/qcom/minidump_log.c +++ b/drivers/soc/qcom/minidump_log.c @@ -656,10 +656,16 @@ static void md_dump_task_info(struct task_struct *task, char *status, se = &task->se; if (task == curr) { +#ifdef CONFIG_ARM64 seq_buf_printf(md_runq_seq_buf, "[status: curr] pid: %d comm: %s preempt: %#x\n", task_pid_nr(task), task->comm, task->thread_info.preempt_count); +#else + seq_buf_printf(md_runq_seq_buf, + "[status: curr] pid: %d comm: %s\n", + task_pid_nr(task), task->comm); +#endif return; }