From: hebe Date: Tue, 18 Sep 2012 07:40:18 +0000 (+0200) Subject: EcuM_Main, reverted fix for non-ppc. Problem was already fixed.. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/arc.git/commitdiff_plain/f6ec5983061887bd12028b31ec29e0b6706d4513 EcuM_Main, reverted fix for non-ppc. Problem was already fixed.. --- diff --git a/system/EcuM/EcuM_Main.c b/system/EcuM/EcuM_Main.c index 898c2bd4..10a9aef2 100644 --- a/system/EcuM/EcuM_Main.c +++ b/system/EcuM/EcuM_Main.c @@ -180,8 +180,6 @@ static void in_state_goSleep( void ) { cMask = sleepModePtr->EcuMWakeupSourceMask; /* Loop over the WKSOURCE for this sleep mode */ -#if defined(PPC) - for (; cMask; cMask &= ~(1ul << source)) { source = ilog2(cMask); /* @req 3.1.5/ECUM2389 */ @@ -194,21 +192,7 @@ static void in_state_goSleep( void ) { /* Let no one else run */ GetResource(RES_SCHEDULER); } -#else - for (source = 0; cMask; source++) { - if(cMask & (1ul << source)){ - /* @req 3.1.5/ECUM2389 */ - EcuM_EnableWakeupSources( 1 << source ); - cMask &= ~(1ul << source); -#if defined(WDGM) - WdgM_SetMode(sleepModePtr->EcuMSleepModeWdgMMode); -#endif - /* Let no one else run */ - GetResource(RES_SCHEDULER); - } - } -#endif } else if( EcuM_GetPendingWakeupEvents() != 0 ) { /* We have pending wakeup events, need to startup again */ #if defined(USE_NVM)