Print this page
5255 uts shouldn't open-code ISP2

*** 21,35 **** /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - /* * PCI nexus driver general debug support */ #include <sys/async.h> #include <sys/sunddi.h> /* dev_info_t */ #include <sys/ddi_impldefs.h> #include <sys/disp.h> #include <sys/archsystm.h> /* getpil() */ --- 21,34 ---- /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * PCI nexus driver general debug support */ + #include <sys/sysmacros.h> #include <sys/async.h> #include <sys/sunddi.h> /* dev_info_t */ #include <sys/ddi_impldefs.h> #include <sys/disp.h> #include <sys/archsystm.h> /* getpil() */
*** 254,264 **** #ifdef DEBUG if (px_dbg_reference++ == 0) { int size = px_dbg_msg_size; /* Check if px_dbg_msg_size is ^2 */ ! size = (size & (size - 1)) ? ((size | ~size) + 1) : size; px_dbg_msg_size = size; px_dbg_qmask = size - 1; px_dbg_msgq = kmem_zalloc(sizeof (px_dbg_msg_t) * size, KM_SLEEP); --- 253,263 ---- #ifdef DEBUG if (px_dbg_reference++ == 0) { int size = px_dbg_msg_size; /* Check if px_dbg_msg_size is ^2 */ ! size = !ISP2(size) ? ((size | ~size) + 1) : size; px_dbg_msg_size = size; px_dbg_qmask = size - 1; px_dbg_msgq = kmem_zalloc(sizeof (px_dbg_msg_t) * size, KM_SLEEP);