linux-mips
[Top] [All Lists]

[PATCH 3/3] Allow setup_irq call for VPE1 timer.

To: linux-mips@linux-mips.org, dvomlehn@cisco.com
Subject: [PATCH 3/3] Allow setup_irq call for VPE1 timer.
From: Anoop P <anoop.pa@gmail.com>
Date: Thu, 25 Nov 2010 20:37:12 +0530
Cc: Anoop P A <anoop.pa@gmail.com>, Ralf Baechle <ralf@linux-mips.org>, David Howells <dhowells@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, David Daney <ddaney@caviumnetworks.com>, linux-kernel@vger.kernel.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=p8xwvKBxIe6F96/g5WKFn93diUwK6Il0uYZoikwWm2A=; b=EP01zaS9z4xB5aAuAHcRwOJ1biiUhiApWdEXXAFEVuRSVFPze9SF9gAdmTkzF2qvHe TvfhPiT43mmV5W1Zdt7hYZhAlQfEqQOINxyUPBXglWJVR8s45e5uW3TI8AckCLe6zVmO ngWVYKX4ArJ1mRHoWlcfCoBWvLcxbDbhuXHKM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=I77sWZJQar8nbAvcECAyOgQGp9mcTOrQgaozf0KzEy5YLaGOl7ok4lFST3Ef5OdM7D Ky2xO+iY5szUI6xF+PCjlfP8GbQwUIv6Cs8DmosV4HrB6CEZUvN/3xMjAPv0VdfpkIWe 8YCq9kHz59tHQA8qLlh8IHfy4b5Enq8tux9J4=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
From: Anoop P A <anoop.pa@gmail.com>

VSMP configuration can have seperate timer interrupts for each VPE.Need to 
setup IRQ for VPE1 timer.

Signed-off-by: Anoop P A <anoop.pa@gmail.com>
---
 arch/mips/kernel/cevt-r4k.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
index 2f4d7a9..7eaeacd 100644
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -203,9 +203,10 @@ int __cpuinit r4k_clockevent_init(void)
 
        clockevents_register_device(cd);
 
+#ifndef CONFIG_MIPS_MT_SMP
        if (cp0_timer_irq_installed)
                return 0;
-
+#endif
        cp0_timer_irq_installed = 1;
 
        setup_irq(irq, &c0_compare_irqaction);
-- 
1.7.0.4


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 3/3] Allow setup_irq call for VPE1 timer., Anoop P <=