Print this page
4786 emlxs shouldn't abuse ddi_get_time(9f)

*** 21,30 **** --- 21,31 ---- /* * Copyright 2010 Emulex. All rights reserved. * Use is subject to license terms. * Copyright (c) 2011 Bayard G. Bell. All rights reserved. + * Copyright 2014 Nexenta Systems, Inc. All rights reserved. */ #define DEF_ICFG 1
*** 1095,1105 **** (void) sprintf(buf, "%s_device mutex", DRIVER_NAME); mutex_init(&emlxs_device.lock, buf, MUTEX_DRIVER, NULL); (void) drv_getparm(LBOLT, &emlxs_device.log_timestamp); ! emlxs_device.drv_timestamp = ddi_get_time(); for (ret = 0; ret < MAX_FC_BRDS; ret++) { emlxs_instance[ret] = (uint32_t)-1; } --- 1096,1106 ---- (void) sprintf(buf, "%s_device mutex", DRIVER_NAME); mutex_init(&emlxs_device.lock, buf, MUTEX_DRIVER, NULL); (void) drv_getparm(LBOLT, &emlxs_device.log_timestamp); ! emlxs_device.drv_timestamp = gethrtime(); for (ret = 0; ret < MAX_FC_BRDS; ret++) { emlxs_instance[ret] = (uint32_t)-1; }