29 lines
614 B
Diff
29 lines
614 B
Diff
From 838f21b710f12c8d32d05ee4f3a8582acd3f0c18 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Tue, 10 Apr 2012 14:34:04 -0400
|
|
Subject: [PATCH 120/278] panic-disable-random-on-rt
|
|
|
|
---
|
|
kernel/panic.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/kernel/panic.c b/kernel/panic.c
|
|
index 3458469..50f4de5 100644
|
|
--- a/kernel/panic.c
|
|
+++ b/kernel/panic.c
|
|
@@ -343,9 +343,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;
|
|
--
|
|
1.7.10
|
|
|