aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/random.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-10-15 08:16:55 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:53:15 -0400
commit2cc21ef843d4fb7da122239b644a1f6f0aca60a6 (patch)
tree5d08e110164176c4011e42d4700ecd0050ad0ce9 /drivers/char/random.c
parentc6b7674f323622d86316bf7951ad9cae1ce24642 (diff)
genirq: remove sparse irq code
This code is not ready, but we need to rip it out instead of rebasing as we would lose the APIC/IO_APIC unification otherwise. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r--drivers/char/random.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 60c9c7ee6b2c..9ce80213007b 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -558,8 +558,6 @@ struct timer_rand_state {
558 unsigned dont_count_entropy:1; 558 unsigned dont_count_entropy:1;
559}; 559};
560 560
561#ifndef CONFIG_HAVE_SPARSE_IRQ
562
563#ifdef CONFIG_HAVE_DYN_ARRAY 561#ifdef CONFIG_HAVE_DYN_ARRAY
564static struct timer_rand_state **irq_timer_state; 562static struct timer_rand_state **irq_timer_state;
565DEFINE_DYN_ARRAY(irq_timer_state, sizeof(struct timer_rand_state *), nr_irqs, PAGE_SIZE, NULL); 563DEFINE_DYN_ARRAY(irq_timer_state, sizeof(struct timer_rand_state *), nr_irqs, PAGE_SIZE, NULL);
@@ -583,33 +581,6 @@ static void set_timer_rand_state(unsigned int irq, struct timer_rand_state *stat
583 irq_timer_state[irq] = state; 581 irq_timer_state[irq] = state;
584} 582}
585 583
586#else
587
588static struct timer_rand_state *get_timer_rand_state(unsigned int irq)
589{
590 struct irq_desc *desc;
591
592 desc = irq_to_desc(irq);
593
594 if (!desc)
595 return NULL;
596
597 return desc->timer_rand_state;
598}
599
600static void set_timer_rand_state(unsigned int irq, struct timer_rand_state *state)
601{
602 struct irq_desc *desc;
603
604 desc = irq_to_desc(irq);
605
606 if (!desc)
607 return;
608
609 desc->timer_rand_state = state;
610}
611#endif
612
613static struct timer_rand_state input_timer_state; 584static struct timer_rand_state input_timer_state;
614 585
615/* 586/*
@@ -967,10 +938,8 @@ void rand_initialize_irq(int irq)
967{ 938{
968 struct timer_rand_state *state; 939 struct timer_rand_state *state;
969 940
970#ifndef CONFIG_HAVE_SPARSE_IRQ
971 if (irq >= nr_irqs) 941 if (irq >= nr_irqs)
972 return; 942 return;
973#endif
974 943
975 state = get_timer_rand_state(irq); 944 state = get_timer_rand_state(irq);
976 945