Revert "MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed"
This reverts commit cc75a38dcd
.
This commit is contained in:
parent
6aaccefee5
commit
7774e178bc
1 changed files with 8 additions and 7 deletions
|
@ -307,6 +307,13 @@ int r4k_clockevent_init(void)
|
||||||
if (!c0_compare_int_usable())
|
if (!c0_compare_int_usable())
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* With vectored interrupts things are getting platform specific.
|
||||||
|
* get_c0_compare_int is a hook to allow a platform to return the
|
||||||
|
* interrupt number of its liking.
|
||||||
|
*/
|
||||||
|
irq = get_c0_compare_int();
|
||||||
|
|
||||||
cd = &per_cpu(mips_clockevent_device, cpu);
|
cd = &per_cpu(mips_clockevent_device, cpu);
|
||||||
|
|
||||||
cd->name = "MIPS";
|
cd->name = "MIPS";
|
||||||
|
@ -317,6 +324,7 @@ int r4k_clockevent_init(void)
|
||||||
min_delta = calculate_min_delta();
|
min_delta = calculate_min_delta();
|
||||||
|
|
||||||
cd->rating = 300;
|
cd->rating = 300;
|
||||||
|
cd->irq = irq;
|
||||||
cd->cpumask = cpumask_of(cpu);
|
cd->cpumask = cpumask_of(cpu);
|
||||||
cd->set_next_event = mips_next_event;
|
cd->set_next_event = mips_next_event;
|
||||||
cd->event_handler = mips_event_handler;
|
cd->event_handler = mips_event_handler;
|
||||||
|
@ -328,13 +336,6 @@ int r4k_clockevent_init(void)
|
||||||
|
|
||||||
cp0_timer_irq_installed = 1;
|
cp0_timer_irq_installed = 1;
|
||||||
|
|
||||||
/*
|
|
||||||
* With vectored interrupts things are getting platform specific.
|
|
||||||
* get_c0_compare_int is a hook to allow a platform to return the
|
|
||||||
* interrupt number of its liking.
|
|
||||||
*/
|
|
||||||
irq = get_c0_compare_int();
|
|
||||||
|
|
||||||
if (request_irq(irq, c0_compare_interrupt, flags, "timer",
|
if (request_irq(irq, c0_compare_interrupt, flags, "timer",
|
||||||
c0_compare_interrupt))
|
c0_compare_interrupt))
|
||||||
pr_err("Failed to request irq %d (timer)\n", irq);
|
pr_err("Failed to request irq %d (timer)\n", irq);
|
||||||
|
|
Loading…
Reference in a new issue