26 lines
602 B
Diff
26 lines
602 B
Diff
From d031b10ffd68770c983d3cf605ae52a11909aa15 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/290] 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;
|