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:
behlendo 2008-11-04 00:00:16 +00:00
parent c8e60837b7
commit b07335c1a7
2 changed files with 7 additions and 11 deletions

View File

@ -184,7 +184,7 @@ __ddi_create_minor_node(dev_info_t *di, char *name, int spec_type,
RETURN(DDI_SUCCESS); RETURN(DDI_SUCCESS);
} }
EXPORT_SYMBOL(__ddi_create_minor_node); EXPORT_SYMBOL_GPL(__ddi_create_minor_node);
static void static void
__ddi_remove_minor_node_locked(dev_info_t *di, char *name) __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); mutex_exit(&di->di_lock);
EXIT; EXIT;
} }
EXPORT_SYMBOL(ddi_remove_minor_node); EXPORT_SYMBOL_GPL(ddi_remove_minor_node);
#if 0 #if 0
static int static int

View File

@ -58,15 +58,11 @@ __gethrtime(void) {
unsigned long long res = monotonic_clock(); unsigned long long res = monotonic_clock();
/* Deal with signed/unsigned mismatch */ /* Deal with signed/unsigned mismatch */
return (hrtime_t)(res & ~(1ULL << (BITS_PER_LONG - 1))); return (hrtime_t)(res & ~(1ULL << 63));
#else #else
timespec_t tv; int64_t j = get_jiffies_64();
hrtime_t rc;
do_posix_clock_monotonic_gettime(&tv); return j * NSEC_PER_SEC / HZ;
rc = (NSEC_PER_SEC * (hrtime_t)tv.tv_sec) + (hrtime_t)tv.tv_nsec;
return rc;
#endif #endif
} }
EXPORT_SYMBOL(__gethrtime); EXPORT_SYMBOL(__gethrtime);