summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 20:49:58 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:52:07 +0200
commiteef1de76da54a2ab6c6659c9a3722fd54a0e3459 (patch)
tree19f77419662903c8f02c3f9e41ef0ca9348147ae
parent5a15d7e85582fa84cbd01c6dcc5d927b43fddff4 (diff)
downloadop-kernel-dev-eef1de76da54a2ab6c6659c9a3722fd54a0e3459.zip
op-kernel-dev-eef1de76da54a2ab6c6659c9a3722fd54a0e3459.tar.gz
irqs: make irq_timer_state to use dyn_array
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--drivers/char/random.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 3145647..1610aa6 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
OpenPOWER on IntegriCloud