mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
ia64: Use the core irq stats function
Let the core do the irq_desc resolution. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: ia64 <linux-ia64@vger.kernel.org> Link: http://lkml.kernel.org/r/20140223212738.099977064@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
bc5dfcff65
commit
3611587aa1
@ -489,14 +489,13 @@ ia64_handle_irq (ia64_vector vector, struct pt_regs *regs)
|
|||||||
ia64_srlz_d();
|
ia64_srlz_d();
|
||||||
while (vector != IA64_SPURIOUS_INT_VECTOR) {
|
while (vector != IA64_SPURIOUS_INT_VECTOR) {
|
||||||
int irq = local_vector_to_irq(vector);
|
int irq = local_vector_to_irq(vector);
|
||||||
struct irq_desc *desc = irq_to_desc(irq);
|
|
||||||
|
|
||||||
if (unlikely(IS_LOCAL_TLB_FLUSH(vector))) {
|
if (unlikely(IS_LOCAL_TLB_FLUSH(vector))) {
|
||||||
smp_local_flush_tlb();
|
smp_local_flush_tlb();
|
||||||
kstat_incr_irqs_this_cpu(irq, desc);
|
kstat_incr_irq_this_cpu(irq);
|
||||||
} else if (unlikely(IS_RESCHEDULE(vector))) {
|
} else if (unlikely(IS_RESCHEDULE(vector))) {
|
||||||
scheduler_ipi();
|
scheduler_ipi();
|
||||||
kstat_incr_irqs_this_cpu(irq, desc);
|
kstat_incr_irq_this_cpu(irq);
|
||||||
} else {
|
} else {
|
||||||
ia64_setreg(_IA64_REG_CR_TPR, vector);
|
ia64_setreg(_IA64_REG_CR_TPR, vector);
|
||||||
ia64_srlz_d();
|
ia64_srlz_d();
|
||||||
@ -549,13 +548,12 @@ void ia64_process_pending_intr(void)
|
|||||||
*/
|
*/
|
||||||
while (vector != IA64_SPURIOUS_INT_VECTOR) {
|
while (vector != IA64_SPURIOUS_INT_VECTOR) {
|
||||||
int irq = local_vector_to_irq(vector);
|
int irq = local_vector_to_irq(vector);
|
||||||
struct irq_desc *desc = irq_to_desc(irq);
|
|
||||||
|
|
||||||
if (unlikely(IS_LOCAL_TLB_FLUSH(vector))) {
|
if (unlikely(IS_LOCAL_TLB_FLUSH(vector))) {
|
||||||
smp_local_flush_tlb();
|
smp_local_flush_tlb();
|
||||||
kstat_incr_irqs_this_cpu(irq, desc);
|
kstat_incr_irq_this_cpu(irq);
|
||||||
} else if (unlikely(IS_RESCHEDULE(vector))) {
|
} else if (unlikely(IS_RESCHEDULE(vector))) {
|
||||||
kstat_incr_irqs_this_cpu(irq, desc);
|
kstat_incr_irq_this_cpu(irq);
|
||||||
} else {
|
} else {
|
||||||
struct pt_regs *old_regs = set_irq_regs(NULL);
|
struct pt_regs *old_regs = set_irq_regs(NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user