summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2023-06-14 13:04:57 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2023-06-14 14:40:33 +0900
commit93db3042b4b31b6f6dd62a2cf1cf786fe6c48783 (patch)
treeb48cb43a215186409c1f4072639357b2cf63fb4a
parent76600afb094c2994e7d28a9f96c17df9d4fa4071 (diff)
downloadlinux-4.9-exynos9110-accepted/tizen_unified.tar.gz
linux-4.9-exynos9110-accepted/tizen_unified.tar.bz2
linux-4.9-exynos9110-accepted/tizen_unified.zip
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 <sw0312.kim@samsung.com>
-rw-r--r--drivers/staging/samsung/sec_debug.c2
-rw-r--r--include/linux/sec_debug.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/samsung/sec_debug.c b/drivers/staging/samsung/sec_debug.c
index c8f4222f205e..bedb6c847e08 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 ae4d0b759540..ca05c45bdecb 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 {