Ensure GPL-only symbols are re-exported as GPL-only
Remove GPL-only symbol from __gethrtime() git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@166 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
parent
c8e60837b7
commit
b07335c1a7
|
@ -184,7 +184,7 @@ __ddi_create_minor_node(dev_info_t *di, char *name, int spec_type,
|
|||
|
||||
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)
|
||||
|
@ -216,7 +216,7 @@ __ddi_remove_minor_node(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
|
||||
|
|
|
@ -58,15 +58,11 @@ __gethrtime(void) {
|
|||
unsigned long long res = monotonic_clock();
|
||||
|
||||
/* Deal with signed/unsigned mismatch */
|
||||
return (hrtime_t)(res & ~(1ULL << (BITS_PER_LONG - 1)));
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue