kernel.h 547 Bytes
Newer Older
Matthew Wilcox's avatar
Matthew Wilcox committed
1
2
3
#ifndef _KERNEL_H
#define _KERNEL_H

4
#include "../../include/linux/kernel.h"
Matthew Wilcox's avatar
Matthew Wilcox committed
5
6
7
8
#include <string.h>
#include <stdio.h>
#include <limits.h>

9
10
11
12
#include <linux/compiler.h>
#include <linux/err.h>
#include <linux/bitops.h>
#include <linux/log2.h>
13
#include "../../../include/linux/kconfig.h"
14

15
16
17
#ifdef BENCHMARK
#define RADIX_TREE_MAP_SHIFT	6
#else
18
#define RADIX_TREE_MAP_SHIFT	3
19
#endif
20

Matthew Wilcox's avatar
Matthew Wilcox committed
21
#define printk printf
22
23
#define pr_debug printk

Matthew Wilcox's avatar
Matthew Wilcox committed
24
25
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))

26
27
#define xchg(ptr, x)	uatomic_xchg(ptr, x)

Matthew Wilcox's avatar
Matthew Wilcox committed
28
#endif /* _KERNEL_H */