Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eef1de76 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar
Browse files

irqs: make irq_timer_state to use dyn_array



Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5a15d7e8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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