提交 eef1de76 编写于 作者: Y Yinghai Lu 提交者: Ingo Molnar

irqs: make irq_timer_state to use dyn_array

Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 5a15d7e8
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册