Commit 30379b48 authored by Sergey Vojtovich's avatar Sergey Vojtovich

HAVE_LARGE_PAGE_OPTION to HAVE_LARGE_PAGES

It isn't an "option" anymore.
parent 4338bb8a
...@@ -35,7 +35,7 @@ SET(CMAKE_THREADS_LIBS_INIT -lpthread CACHE INTERNAL "" FORCE) ...@@ -35,7 +35,7 @@ SET(CMAKE_THREADS_LIBS_INIT -lpthread CACHE INTERNAL "" FORCE)
CHECK_SYMBOL_EXISTS(MHA_MAPSIZE_VA sys/mman.h HAVE_DECL_MHA_MAPSIZE_VA) CHECK_SYMBOL_EXISTS(MHA_MAPSIZE_VA sys/mman.h HAVE_DECL_MHA_MAPSIZE_VA)
IF(HAVE_DECL_MHA_MAPSIZE_VA) IF(HAVE_DECL_MHA_MAPSIZE_VA)
SET(HAVE_SOLARIS_LARGE_PAGES 1) SET(HAVE_SOLARIS_LARGE_PAGES 1)
SET(HAVE_LARGE_PAGE_OPTION 1) SET(HAVE_LARGE_PAGES 1)
ENDIF() ENDIF()
......
...@@ -281,7 +281,7 @@ ENDIF() ...@@ -281,7 +281,7 @@ ENDIF()
SET(FN_NO_CASE_SENSE 1) SET(FN_NO_CASE_SENSE 1)
SET(USE_SYMDIR 1) SET(USE_SYMDIR 1)
SET(HAVE_LARGE_PAGE_OPTION 1) SET(HAVE_LARGE_PAGES 1)
# Force static C runtime for targets in current directory # Force static C runtime for targets in current directory
# (useful to get rid of MFC dll's dependency, or in installer) # (useful to get rid of MFC dll's dependency, or in installer)
......
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
#cmakedefine gmtime_r @gmtime_r@ #cmakedefine gmtime_r @gmtime_r@
#cmakedefine HAVE_IN_ADDR_T 1 #cmakedefine HAVE_IN_ADDR_T 1
#cmakedefine HAVE_INITGROUPS 1 #cmakedefine HAVE_INITGROUPS 1
#cmakedefine HAVE_LARGE_PAGE_OPTION 1 #cmakedefine HAVE_LARGE_PAGES 1
#cmakedefine HAVE_LDIV 1 #cmakedefine HAVE_LDIV 1
#cmakedefine HAVE_LRAND48 1 #cmakedefine HAVE_LRAND48 1
#cmakedefine HAVE_LOCALTIME_R 1 #cmakedefine HAVE_LOCALTIME_R 1
......
...@@ -416,7 +416,7 @@ CHECK_FUNCTION_EXISTS (memalign HAVE_MEMALIGN) ...@@ -416,7 +416,7 @@ CHECK_FUNCTION_EXISTS (memalign HAVE_MEMALIGN)
CHECK_FUNCTION_EXISTS (nl_langinfo HAVE_NL_LANGINFO) CHECK_FUNCTION_EXISTS (nl_langinfo HAVE_NL_LANGINFO)
IF(HAVE_MMAP) IF(HAVE_MMAP)
SET(HAVE_LARGE_PAGE_OPTION 1) SET(HAVE_LARGE_PAGES 1)
ENDIF() ENDIF()
IF(HAVE_SYS_EVENT_H) IF(HAVE_SYS_EVENT_H)
......
...@@ -183,14 +183,14 @@ extern void my_get_large_page_size(void); ...@@ -183,14 +183,14 @@ extern void my_get_large_page_size(void);
#define my_get_large_page_size() do {} while(0) #define my_get_large_page_size() do {} while(0)
#endif #endif
#ifdef HAVE_LARGE_PAGE_OPTION #ifdef HAVE_LARGE_PAGES
int my_init_large_pages(my_bool super_large_pages); int my_init_large_pages(my_bool super_large_pages);
uchar *my_large_malloc(size_t *size, myf my_flags); uchar *my_large_malloc(size_t *size, myf my_flags);
void my_large_free(void *ptr, size_t size); void my_large_free(void *ptr, size_t size);
#else #else
#define my_large_malloc(A, B) my_malloc_lock(*(A), (B)) #define my_large_malloc(A, B) my_malloc_lock(*(A), (B))
#define my_large_free(A, B) my_free_lock((A)) #define my_large_free(A, B) my_free_lock((A))
#endif /* HAVE_LARGE_PAGE_OPTION */ #endif /* HAVE_LARGE_PAGES */
#ifdef _WIN32 #ifdef _WIN32
extern BOOL my_obtain_privilege(LPCSTR lpPrivilege); extern BOOL my_obtain_privilege(LPCSTR lpPrivilege);
......
...@@ -66,7 +66,7 @@ IF(HAVE_ALARM) ...@@ -66,7 +66,7 @@ IF(HAVE_ALARM)
SET(MYSYS_SOURCES ${MYSYS_SOURCES} my_alarm.c) SET(MYSYS_SOURCES ${MYSYS_SOURCES} my_alarm.c)
ENDIF() ENDIF()
IF(HAVE_LARGE_PAGE_OPTION) IF(HAVE_LARGE_PAGES)
SET(MYSYS_SOURCES ${MYSYS_SOURCES} my_largepage.c) SET(MYSYS_SOURCES ${MYSYS_SOURCES} my_largepage.c)
ENDIF() ENDIF()
......
...@@ -38,7 +38,7 @@ extern int memcntl(caddr_t, size_t, int, caddr_t, int, int); ...@@ -38,7 +38,7 @@ extern int memcntl(caddr_t, size_t, int, caddr_t, int, int);
#endif /* __sun__ ... */ #endif /* __sun__ ... */
#endif /* HAVE_SOLARIS_LARGE_PAGES */ #endif /* HAVE_SOLARIS_LARGE_PAGES */
#ifdef HAVE_LARGE_PAGE_OPTION #ifdef HAVE_LARGE_PAGES
static my_bool my_use_large_pages= 0; static my_bool my_use_large_pages= 0;
#else #else
#define my_use_large_pages 0 #define my_use_large_pages 0
...@@ -58,7 +58,7 @@ static inline my_bool my_is_2pow(size_t n) { return !((n) & ((n) - 1)); } ...@@ -58,7 +58,7 @@ static inline my_bool my_is_2pow(size_t n) { return !((n) & ((n) - 1)); }
static uchar* my_large_malloc_int(size_t *size, myf my_flags); static uchar* my_large_malloc_int(size_t *size, myf my_flags);
static my_bool my_large_free_int(void *ptr, size_t size); static my_bool my_large_free_int(void *ptr, size_t size);
#ifdef HAVE_LARGE_PAGE_OPTION #ifdef HAVE_LARGE_PAGES
#if defined(HAVE_GETPAGESIZES) || defined(__linux__) #if defined(HAVE_GETPAGESIZES) || defined(__linux__)
/* Descending sort */ /* Descending sort */
...@@ -226,7 +226,7 @@ void my_large_free(void *ptr, size_t size) ...@@ -226,7 +226,7 @@ void my_large_free(void *ptr, size_t size)
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
#endif /* HAVE_LARGE_PAGE_OPTION */ #endif /* HAVE_LARGE_PAGES */
#ifdef __linux__ #ifdef __linux__
......
...@@ -3937,7 +3937,7 @@ static int init_common_variables() ...@@ -3937,7 +3937,7 @@ static int init_common_variables()
DBUG_PRINT("info",("%s Ver %s for %s on %s\n",my_progname, DBUG_PRINT("info",("%s Ver %s for %s on %s\n",my_progname,
server_version, SYSTEM_TYPE,MACHINE_TYPE)); server_version, SYSTEM_TYPE,MACHINE_TYPE));
#ifdef HAVE_LARGE_PAGE_OPTION #ifdef HAVE_LARGE_PAGES
/* Initialize large page size */ /* Initialize large page size */
if (opt_large_pages) if (opt_large_pages)
{ {
...@@ -3952,7 +3952,7 @@ static int init_common_variables() ...@@ -3952,7 +3952,7 @@ static int init_common_variables()
This function must be called after my_init_large_pages. This function must be called after my_init_large_pages.
*/ */
my_get_large_page_size(); my_get_large_page_size();
#endif /* HAVE_LARGE_PAGE_OPTION */ #endif /* HAVE_LARGE_PAGES */
#if defined(HAVE_POOL_OF_THREADS) #if defined(HAVE_POOL_OF_THREADS)
if (IS_SYSVAR_AUTOSIZE(&threadpool_size)) if (IS_SYSVAR_AUTOSIZE(&threadpool_size))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment