From: Yinghai Lu Date: Wed, 20 Aug 2008 03:49:58 +0000 (-0700) Subject: irqs: make irq_timer_state to use dyn_array X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eef1de76da54a2ab6c6659c9a3722fd54a0e3459;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git irqs: make irq_timer_state to use dyn_array Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar --- diff --git a/drivers/char/random.c b/drivers/char/random.c index 31456472829e..1610aa64c7cf 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -559,7 +559,13 @@ struct timer_rand_state { }; static struct timer_rand_state input_timer_state; + +#ifdef CONFIG_HAVE_DYN_ARRAY +static struct timer_rand_state **irq_timer_state; +DEFINE_DYN_ARRAY(irq_timer_state, sizeof(struct timer_rand_state *), nr_irqs, PAGE_SIZE, NULL); +#else static struct timer_rand_state *irq_timer_state[NR_IRQS]; +#endif /* * This function adds entropy to the entropy "pool" by using timing