25 lines
653 B
Diff
25 lines
653 B
Diff
|
From: Thomas Gleixner <tglx@linutronix.de>
|
||
|
Subject: panic: skip get_random_bytes for RT_FULL in init_oops_id
|
||
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patches-3.10.4-rt1.tar.xz
|
||
|
|
||
|
---
|
||
|
kernel/panic.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
Index: linux-stable/kernel/panic.c
|
||
|
===================================================================
|
||
|
--- linux-stable.orig/kernel/panic.c
|
||
|
+++ linux-stable/kernel/panic.c
|
||
|
@@ -363,9 +363,11 @@ static u64 oops_id;
|
||
|
|
||
|
static int init_oops_id(void)
|
||
|
{
|
||
|
+#ifndef CONFIG_PREEMPT_RT_FULL
|
||
|
if (!oops_id)
|
||
|
get_random_bytes(&oops_id, sizeof(oops_id));
|
||
|
else
|
||
|
+#endif
|
||
|
oops_id++;
|
||
|
|
||
|
return 0;
|