summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-04-04 09:14:31 -0500
committerClark Williams <williams@redhat.com>2012-04-04 09:14:31 -0500
commit84bfda25cc1f954a81091c43b185203d0bab2e51 (patch)
treefb88da7ffe12adbb565909897897f0ea60476bcb /kernel
parent02c01b41b726671ac58c9ab27abfb621eaef745e (diff)
panic-disable-random-on-rt
Diffstat (limited to 'kernel')
-rw-r--r--kernel/panic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 3458469eb7c3..50f4de50e779 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;