[Skiboot] [PATCH 11/13] hw/prd: Handle OCC TMGT interrupts through PRD

Jeremy Kerr jk at ozlabs.org
Fri Feb 27 20:11:06 AEDT 2015


This change hooks the OCC TMGT interrupt path into the PRD's
prd_tmgt_interrupt function.

Signed-off-by: Jeremy Kerr <jk at ozlabs.org>

---
 hw/occ.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/hw/occ.c b/hw/occ.c
index 7ca1218..8eb6469 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -598,12 +598,6 @@ void occ_send_dummy_interrupt(void)
 		      OCB_OCI_OCIMISC_IRQ_OPAL_DUMMY);
 }
 
-static void occ_tmgt_interrupt(void)
-{
-	/* Not currently expected */
-	printf("OCC: TMGT interrupt !\n");
-}
-
 void occ_interrupt(uint32_t chip_id)
 {
 	uint64_t ireg;
@@ -623,7 +617,7 @@ void occ_interrupt(uint32_t chip_id)
 
 	/* Dispatch */
 	if (ireg & OCB_OCI_OCIMISC_IRQ_TMGT)
-		occ_tmgt_interrupt();
+		prd_tmgt_interrupt(chip_id);
 
 	/* We may have masked-out OCB_OCI_OCIMISC_IRQ in the previous
 	 * OCCMISC_AND write. Check if there are any new source bits set,


More information about the Skiboot mailing list