nanosleep: add cpu_pause() in spinwait loop
Probably some energy consumption saving? Change-Id: I888f50568db8f08751abd0a002137c3b475362dc Fujitsu: POSTK_DEBUG_ARCH_DEP_43
This commit is contained in:
committed by
Dominique Martinet
parent
62772c8a24
commit
e0b9c5deec
@ -7424,9 +7424,7 @@ SYSCALL_DECLARE(nanosleep)
|
||||
ret = -EINTR;
|
||||
break;
|
||||
}
|
||||
#ifdef POSTK_DEBUG_ARCH_DEP_43
|
||||
cpu_pause();
|
||||
#endif
|
||||
}
|
||||
|
||||
if ((ret == -EINTR) && rem) {
|
||||
|
||||
Reference in New Issue
Block a user