Skip to content

Commit

Permalink
irqs: make irq_timer_state to use dyn_array
Browse files Browse the repository at this point in the history
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 16, 2008
1 parent 5a15d7e commit eef1de7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/char/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eef1de7

Please sign in to comment.