refactoring

This commit is contained in:
rusefi 2019-08-16 22:01:32 -04:00
parent fd1b74e0f8
commit ed854a3828
1 changed files with 1 additions and 7 deletions

View File

@ -265,13 +265,7 @@ static int tle8888_wake_driver(struct tle8888_priv *chip)
/* Entering a reentrant critical zone.*/
syssts_t sts = chSysGetStatusAndLockX();
if (isIsrContext()) {
// this is for normal runtime
chSemSignalI(&tle8888_wake);
} else {
// this is for start-up to not hang up
chSemSignalS(&tle8888_wake);
}
chSemSignalI(&tle8888_wake);
/* Leaving the critical zone.*/
chSysRestoreStatusX(sts);