23 lines
487 B
Diff
23 lines
487 B
Diff
|
From: Thomas Gleixner <tglx@linutronix.de>
|
||
|
|
||
|
---
|
||
|
kernel/panic.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
Index: linux-3.2/kernel/panic.c
|
||
|
===================================================================
|
||
|
--- linux-3.2.orig/kernel/panic.c
|
||
|
+++ linux-3.2/kernel/panic.c
|
||
|
@@ -334,9 +334,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;
|