Add comment explaining why CACHE_LINE_SIZE is defined in nvme_private.h

if not already defined elsewhere.

Requested by:	attilio
MFC after:	3 days
This commit is contained in:
jimharris 2013-07-09 21:24:19 +00:00
parent d7c0528dab
commit 6a4189c5fd

View File

@ -109,6 +109,10 @@ MALLOC_DECLARE(M_NVME);
/* Maximum log page size to fetch for AERs. */ /* Maximum log page size to fetch for AERs. */
#define NVME_MAX_AER_LOG_SIZE (4096) #define NVME_MAX_AER_LOG_SIZE (4096)
/*
* Define CACHE_LINE_SIZE here for older FreeBSD versions that do not define
* it.
*/
#ifndef CACHE_LINE_SIZE #ifndef CACHE_LINE_SIZE
#define CACHE_LINE_SIZE (64) #define CACHE_LINE_SIZE (64)
#endif #endif