From a420d3c07e45cd67ef733f2942cb78db92025a09 Mon Sep 17 00:00:00 2001 From: Sachin Gupta Date: Mon, 9 Feb 2015 23:25:00 -0600 Subject: ATTN: Fixed enable/disable attn flow during runtime Change-Id: Ifcd4a6f71f8007bb5e223ac55d8fd953848974fa RTC: 123533 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15628 Tested-by: Jenkins Server Reviewed-by: Christopher T. Phan Reviewed-by: Bilicon Patil Reviewed-by: Prem Shanker Jha Reviewed-by: Reshmi Nair Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- src/usr/diag/attn/common/attnsvc_common.C | 4 +++- src/usr/diag/attn/runtime/attnsvc.C | 8 +++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/usr/diag') diff --git a/src/usr/diag/attn/common/attnsvc_common.C b/src/usr/diag/attn/common/attnsvc_common.C index 916e6123c..c56b8a888 100644 --- a/src/usr/diag/attn/common/attnsvc_common.C +++ b/src/usr/diag/attn/common/attnsvc_common.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014 */ +/* Contributors Listed Below - COPYRIGHT 2014,2015 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -170,6 +170,7 @@ errlHndl_t ServiceCommon::configureInterrupts( break; } + #ifndef __HOSTBOOT_RUNTIME // enable attentions in ipoll mask mask = HostMask::nonHost(); @@ -186,6 +187,7 @@ errlHndl_t ServiceCommon::configureInterrupts( { break; } + #endif //__HOSTBOOT_RUNTIME ++it; } diff --git a/src/usr/diag/attn/runtime/attnsvc.C b/src/usr/diag/attn/runtime/attnsvc.C index d0552bfed..f1e748f4d 100644 --- a/src/usr/diag/attn/runtime/attnsvc.C +++ b/src/usr/diag/attn/runtime/attnsvc.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014 */ +/* Contributors Listed Below - COPYRIGHT 2014,2015 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -47,12 +47,10 @@ namespace ATTN errlHndl_t Service::disableAttns() { ATTN_SLOW("Service::disableAttns() enter"); - - errlHndl_t err = configureInterrupts(DOWN); - + // During runtime do nothing. ATTN_SLOW("Service::disableAttns() exit"); - return err; + return NULL; } errlHndl_t Service::enableAttns() -- cgit v1.2.1