MIPS: Netlogic: Fix interrupt table entry init
authorJayachandran C <jchandra@broadcom.com>
Wed, 31 Oct 2012 12:01:34 +0000 (12:01 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 9 Nov 2012 10:37:19 +0000 (11:37 +0100)
Used the hardware thread id passed in while writing to IRT in
nlm_pic_init_irt()

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/4465
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/include/asm/netlogic/xlp-hal/pic.h

index ad8b80233a63b255b12a8227bce551a819711560..49ee15c1977151c836ef51e92b59435c97cbee3f 100644 (file)
@@ -404,7 +404,7 @@ nlm_pic_ack(uint64_t base, int irt_num)
 static inline void
 nlm_pic_init_irt(uint64_t base, int irt, int irq, int hwt)
 {
-       nlm_pic_write_irt_direct(base, irt, 0, 0, 0, irq, 0);
+       nlm_pic_write_irt_direct(base, irt, 0, 0, 0, irq, hwt);
 }
 
 extern uint64_t nlm_pic_base;