Commit dfa412e2 authored by James Bottomley's avatar James Bottomley

SCSI: logging optimisation

From: garloff@suse.de

Optimization.

Tell the compiler that the SCSI LOG will not likely happen.
parent cf4616a5
......@@ -46,7 +46,7 @@ extern unsigned int scsi_logging_level;
#define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) \
{ \
if ((SCSI_LOG_LEVEL(SHIFT, BITS)) > (LEVEL)) \
if (unlikely((SCSI_LOG_LEVEL(SHIFT, BITS)) > (LEVEL))) \
(CMD); \
}
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment