From 96dded38442684319305082aa2ac7e25f7f414da Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 20 May 2009 10:08:37 -0700 Subject: SLES10 Fixes (part 2): - Configure check, the div64_64() function was renamed to div64_u64() as of 2.6.26. - Configure check, the global_page_state() fuction was introduced in 2.6.18 kernels. The earlier 2.6.16 based SLES10 must not try and use it, thankfully get_zone_counts() is still available. - To simplify debugging poison all symbols aquired dynamically using spl_kallsyms_lookup_name() with SYMBOL_POISON. - Add console messages when the user mode helpers fail. - spl_kmem_init_globals() use bit shifts instead of division. - When the monotonic clock is unavailable __gethrtime() must perform the HZ division as an 'unsigned long long' because the SPL only implements __udivdi3(), and not __divdi3() for 'long long' division on 32-bit arches. --- spl_config.h.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spl_config.h.in') diff --git a/spl_config.h.in b/spl_config.h.in index 8cfcff5c6..4369f85b7 100644 --- a/spl_config.h.in +++ b/spl_config.h.in @@ -39,6 +39,9 @@ /* div64_64() is available */ #undef HAVE_DIV64_64 +/* div64_u64() is available */ +#undef HAVE_DIV64_U64 + /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H @@ -60,6 +63,9 @@ /* get_zone_counts() is available */ #undef HAVE_GET_ZONE_COUNTS +/* global_page_state() is available */ +#undef HAVE_GLOBAL_PAGE_STATE + /* init_utsname() is available */ #undef HAVE_INIT_UTSNAME -- cgit v1.2.3