The SCHEDULER_STOPPED() macro already contains a predict false statement.

Remove superfluous unlikely() wrapper.

Suggested by:	glebius
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2016-05-27 07:33:49 +00:00
parent 99dd54c816
commit 80f7038dc0
2 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,7 @@ do { \
void *c = &(q).wchan; \
if (!(cond)) { \
for (;;) { \
if (unlikely(SCHEDULER_STOPPED())) \
if (SCHEDULER_STOPPED()) \
break; \
sleepq_lock(c); \
if (cond) { \
@ -103,7 +103,7 @@ do { \
_error = 0; \
if (!(cond)) { \
for (; _error == 0;) { \
if (unlikely(SCHEDULER_STOPPED())) \
if (SCHEDULER_STOPPED()) \
break; \
sleepq_lock(c); \
if (cond) { \
@ -128,7 +128,7 @@ do { \
\
if (!(cond)) { \
for (; __rc == 0;) { \
if (unlikely(SCHEDULER_STOPPED())) \
if (SCHEDULER_STOPPED()) \
break; \
sleepq_lock(c); \
if (cond) { \

View File

@ -1096,7 +1096,7 @@ linux_complete_common(struct completion *c, int all)
long
linux_wait_for_common(struct completion *c, int flags)
{
if (unlikely(SCHEDULER_STOPPED()))
if (SCHEDULER_STOPPED())
return (0);
if (flags != 0)
@ -1128,7 +1128,7 @@ linux_wait_for_timeout_common(struct completion *c, long timeout, int flags)
{
long end = jiffies + timeout;
if (unlikely(SCHEDULER_STOPPED()))
if (SCHEDULER_STOPPED())
return (0);
if (flags != 0)