RETURN(DDI_SUCCESS);
}
-EXPORT_SYMBOL(__ddi_create_minor_node);
+EXPORT_SYMBOL_GPL(__ddi_create_minor_node);
static void
__ddi_remove_minor_node_locked(dev_info_t *di, char *name)
mutex_exit(&di->di_lock);
EXIT;
}
-EXPORT_SYMBOL(ddi_remove_minor_node);
+EXPORT_SYMBOL_GPL(ddi_remove_minor_node);
#if 0
static int
hrtime_t
__gethrtime(void) {
#ifdef HAVE_MONOTONIC_CLOCK
- unsigned long long res = monotonic_clock();
+ unsigned long long res = monotonic_clock();
- /* Deal with signed/unsigned mismatch */
- return (hrtime_t)(res & ~(1ULL << (BITS_PER_LONG - 1)));
+ /* Deal with signed/unsigned mismatch */
+ return (hrtime_t)(res & ~(1ULL << 63));
#else
- timespec_t tv;
- hrtime_t rc;
+ int64_t j = get_jiffies_64();
- do_posix_clock_monotonic_gettime(&tv);
- rc = (NSEC_PER_SEC * (hrtime_t)tv.tv_sec) + (hrtime_t)tv.tv_nsec;
-
- return rc;
+ return j * NSEC_PER_SEC / HZ;
#endif
}
EXPORT_SYMBOL(__gethrtime);