X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=e5c1cb8f670ba89e534357a92462f8bb72764783;hp=7a4b5b79784e2812284079cdecac5df0e1c0984c;hb=0a9c652a6a8a24504278715cc17f783b20b225c2;hpb=9c71dacaf0b16c10952b4d788016e70b667cd77b diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 7a4b5b7..e5c1cb8 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -451,32 +451,6 @@ AC_DEFUN([LC_CONFIG_GSS], fi ]) -AC_DEFUN([LC_PERCPU_COUNTER], -[AC_MSG_CHECKING([if have struct percpu_counter defined]) -LB_LINUX_TRY_COMPILE([ - #include -],[],[ - AC_DEFINE(HAVE_PERCPU_COUNTER, 1, [percpu_counter found]) - AC_MSG_RESULT([yes]) - - AC_MSG_CHECKING([if percpu_counter_inc takes the 2nd argument]) - LB_LINUX_TRY_COMPILE([ - #include - ],[ - struct percpu_counter c; - percpu_counter_init(&c, 0); - ],[ - AC_DEFINE(HAVE_PERCPU_2ND_ARG, 1, [percpu_counter_init has two - arguments]) - AC_MSG_RESULT([yes]) - ],[ - AC_MSG_RESULT([no]) - ]) -],[ - AC_MSG_RESULT([no]) -]) -]) - AC_DEFUN([LC_TASK_CLENV_STORE], [ AC_MSG_CHECKING([if we can store cl_env in task_struct]) @@ -485,38 +459,6 @@ AC_DEFUN([LC_TASK_CLENV_STORE], fi ]) -# ~2.6.11 - -AC_DEFUN([LC_S_TIME_GRAN], -[AC_MSG_CHECKING([if super block has s_time_gran member]) -LB_LINUX_TRY_COMPILE([ - #include -],[ - struct super_block *sb = NULL; - - return sb->s_time_gran; -],[ - AC_MSG_RESULT([yes]) - AC_DEFINE(HAVE_S_TIME_GRAN, 1, [super block has s_time_gran member]) -],[ - AC_MSG_RESULT([no]) -]) -]) - -AC_DEFUN([LC_SB_TIME_GRAN], -[AC_MSG_CHECKING([if kernel has old get_sb_time_gran]) -LB_LINUX_TRY_COMPILE([ - #include -],[ - return get_sb_time_gran(NULL); -],[ - AC_MSG_RESULT([yes]) - AC_DEFINE(HAVE_SB_TIME_GRAN, 1, [kernel has old get_sb_time_gran]) -],[ - AC_MSG_RESULT([no]) -]) -]) - # 2.6.12 # ~2.6.12 merge patch from oracle to convert tree_lock from spinlock to rwlock @@ -2010,13 +1952,8 @@ AC_DEFUN([LC_PROG_LINUX], LC_CAPA_CRYPTO LC_CONFIG_RMTCLIENT LC_CONFIG_GSS - LC_PERCPU_COUNTER LC_TASK_CLENV_STORE - # ~2.6.11 - LC_S_TIME_GRAN - LC_SB_TIME_GRAN - # 2.6.12 LC_RW_TREE_LOCK