VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   30 Branches   50 Tags
author: Thomas Gleixner <tglx@linutronix.de> 2015-07-14 14:26:34 +0200 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:47 +0800 commit: 290e2dd97dee8962b42b20df60abc27a87ab7168 parent: c1d3c35bb8c21058df22c192725c921d68f0f28d
Commit Summary:
panic: skip get_random_bytes for RT_FULL in init_oops_id
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 84c5775d4944..d509c0694af9 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -545,9 +545,11 @@ static u64 oops_id;
 
 static int init_oops_id(void)
 {
+#ifndef CONFIG_PREEMPT_RT
 	if (!oops_id)
 		get_random_bytes(&oops_id, sizeof(oops_id));
 	else
+#endif
 		oops_id++;
 
 	return 0;