diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-06-02 12:16:22 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-06-02 12:16:22 +0200 |
commit | 74facffeca3795ffb5cf8898f5859fbb822e4c5d (patch) | |
tree | 6dec7ecd2a2e4a83b7514bab17599bdcb1fe4e90 /arch/arm/include | |
parent | Revert "mm: fail GFP_DMA allocations when ZONE_DMA is not configured" (diff) | |
download | linux-74facffeca3795ffb5cf8898f5859fbb822e4c5d.tar.xz linux-74facffeca3795ffb5cf8898f5859fbb822e4c5d.zip |
ARM: Allow SoCs to enable scatterlist chaining
Allow SoCs to enable the scatterlist chaining support, which allows
scatterlist tables to be broken up into smaller allocations.
As support for this feature depends on the implementation details of
the users of the scatterlists, we can't enable this globally without
auditing all the users, which is a very big task. Instead, let SoCs
progressively switch over to using this.
SoC drivers using scatterlists and SoC DMA implementations need
auditing before this option can be enabled for the SoC.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/scatterlist.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/scatterlist.h b/arch/arm/include/asm/scatterlist.h index 2f87870d9347..cefdb8f898a1 100644 --- a/arch/arm/include/asm/scatterlist.h +++ b/arch/arm/include/asm/scatterlist.h @@ -1,6 +1,10 @@ #ifndef _ASMARM_SCATTERLIST_H #define _ASMARM_SCATTERLIST_H +#ifdef CONFIG_ARM_HAS_SG_CHAIN +#define ARCH_HAS_SG_CHAIN +#endif + #include <asm/memory.h> #include <asm/types.h> #include <asm-generic/scatterlist.h> |