diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-08-21 18:38:50 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:19:58 (GMT) |
commit | 0c3c1a13909e924e0db663aa08daae807be9ec75 (patch) | |
tree | 9e8186cf67bd0b3816f948affb0b847bd688605f /include/linux/irqdesc.h | |
parent | 744e56f3ee76bcebf0ab9498d0b6a5909358250e (diff) | |
download | linux-fsl-qoriq-0c3c1a13909e924e0db663aa08daae807be9ec75.tar.xz |
random: Make it work on rt
Delegate the random insertion to the forced threaded interrupt
handler. Store the return IP of the hard interrupt handler in the irq
descriptor and feed it into the random generator as a source of
entropy.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable-rt@vger.kernel.org
Diffstat (limited to 'include/linux/irqdesc.h')
-rw-r--r-- | include/linux/irqdesc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index 56fb646..da992bc 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h @@ -52,6 +52,7 @@ struct irq_desc { unsigned int irq_count; /* For detecting broken IRQs */ unsigned long last_unhandled; /* Aging timer for unhandled count */ unsigned int irqs_unhandled; + u64 random_ip; raw_spinlock_t lock; struct cpumask *percpu_enabled; #ifdef CONFIG_SMP |