lkml.org 
[lkml]   [2014]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 4/4] ACPICA: Cleanup redudant definitions that already have defaults in <acpi/platform/acenv.h>.
    Date
    Since mis-order issues have been solved, we can cleanup redundant
    definitions that already have defaults in <acpi/platform/acenv.h>.

    This patch removes redudant environments for __KERNEL__ surrounded code.

    Signed-off-by: Lv Zheng <lv.zheng@intel.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: linux-ia64@vger.kernel.org
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: x86@kernel.org
    ---
    arch/ia64/include/asm/acenv.h | 15 ---------------
    arch/x86/include/asm/acenv.h | 16 ----------------
    include/acpi/platform/aclinux.h | 1 -
    3 files changed, 32 deletions(-)

    diff --git a/arch/ia64/include/asm/acenv.h b/arch/ia64/include/asm/acenv.h
    index e0896eb..3f9eaee 100644
    --- a/arch/ia64/include/asm/acenv.h
    +++ b/arch/ia64/include/asm/acenv.h
    @@ -17,23 +17,8 @@
    #define COMPILER_DEPENDENT_INT64 long
    #define COMPILER_DEPENDENT_UINT64 unsigned long

    -/*
    - * Calling conventions:
    - *
    - * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads)
    - * ACPI_EXTERNAL_XFACE - External ACPI interfaces
    - * ACPI_INTERNAL_XFACE - Internal ACPI interfaces
    - * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces
    - */
    -#define ACPI_SYSTEM_XFACE
    -#define ACPI_EXTERNAL_XFACE
    -#define ACPI_INTERNAL_XFACE
    -#define ACPI_INTERNAL_VAR_XFACE
    -
    /* Asm macros */

    -#define ACPI_FLUSH_CPU_CACHE()
    -
    #ifdef CONFIG_ACPI

    static inline int
    diff --git a/arch/x86/include/asm/acenv.h b/arch/x86/include/asm/acenv.h
    index 6978584..6687329 100644
    --- a/arch/x86/include/asm/acenv.h
    +++ b/arch/x86/include/asm/acenv.h
    @@ -14,22 +14,6 @@

    #include <asm/special_insns.h>

    -#define COMPILER_DEPENDENT_INT64 long long
    -#define COMPILER_DEPENDENT_UINT64 unsigned long long
    -
    -/*
    - * Calling conventions:
    - *
    - * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads)
    - * ACPI_EXTERNAL_XFACE - External ACPI interfaces
    - * ACPI_INTERNAL_XFACE - Internal ACPI interfaces
    - * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces
    - */
    -#define ACPI_SYSTEM_XFACE
    -#define ACPI_EXTERNAL_XFACE
    -#define ACPI_INTERNAL_XFACE
    -#define ACPI_INTERNAL_VAR_XFACE
    -
    /* Asm macros */

    #define ACPI_FLUSH_CPU_CACHE() wbinvd()
    diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
    index 5d27e56..e700129 100644
    --- a/include/acpi/platform/aclinux.h
    +++ b/include/acpi/platform/aclinux.h
    @@ -48,7 +48,6 @@

    #define ACPI_USE_SYSTEM_CLIBRARY
    #define ACPI_USE_DO_WHILE_0
    -#define ACPI_MUTEX_TYPE ACPI_BINARY_SEMAPHORE

    #ifdef __KERNEL__

    --
    1.7.10


    \
     
     \ /
      Last update: 2014-05-12 10:21    [W:2.714 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site