forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* acpica: (63 commits) ACPICA: Namespace: Remove _PRP method support. ACPI: Fix x86 regression related to early mapping size limitation ACPICA: Tables: Add mechanism to control early table checksum verification. ACPICA: acpidump: Fix repetitive table dump in -n mode. ACPI: Clean up acpi_os_map/unmap_memory() to eliminate __iomem. ACPICA: Clean up redudant definitions already defined elsewhere ACPICA: Linux headers: Add <asm/acenv.h> to remove mis-ordered inclusion of <asm/acpi.h> ACPICA: Linux headers: Add <acpi/platform/aclinuxex.h> ACPICA: Linux headers: Remove ACPI_PREEMPTION_POINT() due to no usages. ACPICA: Update version to 20140424. ACPICA: Comment/format update, no functional change. ACPICA: Events: Update GPE handling and initialization code. ACPICA: Remove extraneous error message for large number of GPEs. ACPICA: Tables: Remove old mechanism to validate if XSDT contains NULL entries. ACPICA: Tables: Add new mechanism to skip NULL entries in RSDT and XSDT. ACPICA: acpidump: Add support to force using RSDT. ACPICA: Back port of improvements on exception code. ACPICA: Back port of _PRP update. ACPICA: acpidump: Fix truncated RSDP signature validation. ACPICA: Linux header: Add support for stubbed externals. ...
- Loading branch information
Showing
65 changed files
with
6,060 additions
and
2,271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* IA64 specific ACPICA environments and implementation | ||
* | ||
* Copyright (C) 2014, Intel Corporation | ||
* Author: Lv Zheng <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef _ASM_IA64_ACENV_H | ||
#define _ASM_IA64_ACENV_H | ||
|
||
#include <asm/intrinsics.h> | ||
|
||
#define COMPILER_DEPENDENT_INT64 long | ||
#define COMPILER_DEPENDENT_UINT64 unsigned long | ||
|
||
/* Asm macros */ | ||
|
||
#ifdef CONFIG_ACPI | ||
|
||
static inline int | ||
ia64_acpi_acquire_global_lock(unsigned int *lock) | ||
{ | ||
unsigned int old, new, val; | ||
do { | ||
old = *lock; | ||
new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1)); | ||
val = ia64_cmpxchg4_acq(lock, new, old); | ||
} while (unlikely (val != old)); | ||
return (new < 3) ? -1 : 0; | ||
} | ||
|
||
static inline int | ||
ia64_acpi_release_global_lock(unsigned int *lock) | ||
{ | ||
unsigned int old, new, val; | ||
do { | ||
old = *lock; | ||
new = old & ~0x3; | ||
val = ia64_cmpxchg4_acq(lock, new, old); | ||
} while (unlikely (val != old)); | ||
return old & 0x1; | ||
} | ||
|
||
#define ACPI_ACQUIRE_GLOBAL_LOCK(facs, Acq) \ | ||
((Acq) = ia64_acpi_acquire_global_lock(&facs->global_lock)) | ||
|
||
#define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \ | ||
((Acq) = ia64_acpi_release_global_lock(&facs->global_lock)) | ||
|
||
#endif | ||
|
||
#endif /* _ASM_IA64_ACENV_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* X86 specific ACPICA environments and implementation | ||
* | ||
* Copyright (C) 2014, Intel Corporation | ||
* Author: Lv Zheng <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef _ASM_X86_ACENV_H | ||
#define _ASM_X86_ACENV_H | ||
|
||
#include <asm/special_insns.h> | ||
|
||
/* Asm macros */ | ||
|
||
#define ACPI_FLUSH_CPU_CACHE() wbinvd() | ||
|
||
#ifdef CONFIG_ACPI | ||
|
||
int __acpi_acquire_global_lock(unsigned int *lock); | ||
int __acpi_release_global_lock(unsigned int *lock); | ||
|
||
#define ACPI_ACQUIRE_GLOBAL_LOCK(facs, Acq) \ | ||
((Acq) = __acpi_acquire_global_lock(&facs->global_lock)) | ||
|
||
#define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \ | ||
((Acq) = __acpi_release_global_lock(&facs->global_lock)) | ||
|
||
/* | ||
* Math helper asm macros | ||
*/ | ||
#define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \ | ||
asm("divl %2;" \ | ||
: "=a"(q32), "=d"(r32) \ | ||
: "r"(d32), \ | ||
"0"(n_lo), "1"(n_hi)) | ||
|
||
#define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \ | ||
asm("shrl $1,%2 ;" \ | ||
"rcrl $1,%3;" \ | ||
: "=r"(n_hi), "=r"(n_lo) \ | ||
: "0"(n_hi), "1"(n_lo)) | ||
|
||
#endif | ||
|
||
#endif /* _ASM_X86_ACENV_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,6 +135,7 @@ acpi-y += \ | |
rsxface.o | ||
|
||
acpi-y += \ | ||
tbdata.o \ | ||
tbfadt.o \ | ||
tbfind.o \ | ||
tbinstal.o \ | ||
|
Oops, something went wrong.