From 93db3042b4b31b6f6dd62a2cf1cf786fe6c48783 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 14 Jun 2023 13:04:57 +0900 Subject: [PATCH] staging: sec_debug: store cpu number instead of useless address The address of function stack is useless once function returns. Instead of useless address in function stack, just store cpu number for debug context. Change-Id: Ie3fd1af1935adc0803ab2c9e4bf6749bb66849d8 Signed-off-by: Seung-Woo Kim --- drivers/staging/samsung/sec_debug.c | 2 +- include/linux/sec_debug.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/samsung/sec_debug.c b/drivers/staging/samsung/sec_debug.c index c8f4222..bedb6c8 100644 --- a/drivers/staging/samsung/sec_debug.c +++ b/drivers/staging/samsung/sec_debug.c @@ -758,7 +758,7 @@ void sec_debug_irq_sched_log(unsigned int irq, void *fn, int en) summary_info->sched_log.irq[cpu][i].fn = (void *)fn; summary_info->sched_log.irq[cpu][i].en = en; summary_info->sched_log.irq[cpu][i].preempt_count = preempt_count(); - summary_info->sched_log.irq[cpu][i].context = &cpu; + summary_info->sched_log.irq[cpu][i].p_cpu = cpu; } void sec_debug_irq_enterexit_log(unsigned int irq, unsigned long long start_time) diff --git a/include/linux/sec_debug.h b/include/linux/sec_debug.h index ae4d0b7..ca05c45 100644 --- a/include/linux/sec_debug.h +++ b/include/linux/sec_debug.h @@ -165,7 +165,7 @@ struct irq_log { void *fn; int en; int preempt_count; - void *context; + unsigned int p_cpu; }; struct irq_exit_log { -- 2.7.4