mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] add poison.h and patch primary users
Localize poison values into one header file for better documentation and easier/quicker debugging and so that the same values won't be used for multiple purposes. Use these constants in core arch., mm, driver, and fs code. Signed-off-by: Randy Dunlap <[email protected]> Acked-by: Matt Mackall <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e6e5494cb2
commit
c9cf55285e
9 changed files with 61 additions and 27 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <linux/dmapool.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/poison.h>
|
||||
|
||||
/*
|
||||
* Pool allocator ... wraps the dma_alloc_coherent page allocator, so
|
||||
|
|
@ -35,8 +36,6 @@ struct dma_page { /* cacheable header for 'allocation' bytes */
|
|||
};
|
||||
|
||||
#define POOL_TIMEOUT_JIFFIES ((100 /* msec */ * HZ) / 1000)
|
||||
#define POOL_POISON_FREED 0xa7 /* !inuse */
|
||||
#define POOL_POISON_ALLOCATED 0xa9 /* !initted */
|
||||
|
||||
static DECLARE_MUTEX (pools_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue