aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/paravirt.h5
-rw-r--r--include/linux/kernel.h10
-rw-r--r--include/linux/mm_types.h7
3 files changed, 15 insertions, 7 deletions
diff --git a/include/asm-i386/paravirt.h b/include/asm-i386/paravirt.h
index bc5c12c13581..d7a0512f88e0 100644
--- a/include/asm-i386/paravirt.h
+++ b/include/asm-i386/paravirt.h
@@ -222,11 +222,6 @@ struct paravirt_ops
222 void (*iret)(void); 222 void (*iret)(void);
223}; 223};
224 224
225/* Mark a paravirt probe function. */
226#define paravirt_probe(fn) \
227 static asmlinkage void (*__paravirtprobe_##fn)(void) __attribute_used__ \
228 __attribute__((__section__(".paravirtprobe"))) = fn
229
230extern struct paravirt_ops paravirt_ops; 225extern struct paravirt_ops paravirt_ops;
231 226
232#define PARAVIRT_PATCH(x) \ 227#define PARAVIRT_PATCH(x) \
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 144b615f3a89..8645181fca0f 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -41,6 +41,16 @@ extern const char linux_proc_banner[];
41#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) 41#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
42#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) 42#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
43 43
44/**
45 * upper_32_bits - return bits 32-63 of a number
46 * @n: the number we're accessing
47 *
48 * A basic shift-right of a 64- or 32-bit quantity. Use this to suppress
49 * the "right shift count >= width of type" warning when that quantity is
50 * 32-bits.
51 */
52#define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))
53
44#define KERN_EMERG "<0>" /* system is unusable */ 54#define KERN_EMERG "<0>" /* system is unusable */
45#define KERN_ALERT "<1>" /* action must be taken immediately */ 55#define KERN_ALERT "<1>" /* action must be taken immediately */
46#define KERN_CRIT "<2>" /* critical conditions */ 56#define KERN_CRIT "<2>" /* critical conditions */
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index e30687bad075..d5bb1796e12b 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -50,13 +50,16 @@ struct page {
50 spinlock_t ptl; 50 spinlock_t ptl;
51#endif 51#endif
52 struct { /* SLUB uses */ 52 struct { /* SLUB uses */
53 struct page *first_page; /* Compound pages */ 53 void **lockless_freelist;
54 struct kmem_cache *slab; /* Pointer to slab */ 54 struct kmem_cache *slab; /* Pointer to slab */
55 }; 55 };
56 struct {
57 struct page *first_page; /* Compound pages */
58 };
56 }; 59 };
57 union { 60 union {
58 pgoff_t index; /* Our offset within mapping. */ 61 pgoff_t index; /* Our offset within mapping. */
59 void *freelist; /* SLUB: pointer to free object */ 62 void *freelist; /* SLUB: freelist req. slab lock */
60 }; 63 };
61 struct list_head lru; /* Pageout list, eg. active_list 64 struct list_head lru; /* Pageout list, eg. active_list
62 * protected by zone->lru_lock ! 65 * protected by zone->lru_lock !