diff options
author | Yegor Yefremov <yegorslists@googlemail.com> | 2016-01-27 16:22:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-01 09:16:13 +0100 |
commit | baa7fe1d15606e08ee9da1c21b987eca5072a421 (patch) | |
tree | b557ab2f0a1397ddd24eeaed5d29381835ad71a3 | |
parent | 7a583dfb4f3f34a581b0913dbee6bc222cfbd007 (diff) | |
download | barebox-baa7fe1d15606e08ee9da1c21b987eca5072a421.tar.gz barebox-baa7fe1d15606e08ee9da1c21b987eca5072a421.tar.xz |
Introduce include/linux/spinlock.h
Move spinlock related definitions to its original place.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mtd/nand/denali.h | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/f_acm.c | 1 | ||||
-rw-r--r-- | drivers/usb/musb/musb_core.h | 1 | ||||
-rw-r--r-- | drivers/usb/musb/phy-am335x-control.c | 1 | ||||
-rw-r--r-- | drivers/video/imx-ipu-v3/imx-ipu-v3.h | 1 | ||||
-rw-r--r-- | fs/pstore/platform.c | 1 | ||||
-rw-r--r-- | fs/pstore/ram.c | 1 | ||||
-rw-r--r-- | fs/ubifs/ubifs.h | 1 | ||||
-rw-r--r-- | include/linux/barebox-wrapper.h | 7 | ||||
-rw-r--r-- | include/linux/dcache.h | 2 | ||||
-rw-r--r-- | include/linux/fs.h | 1 | ||||
-rw-r--r-- | include/linux/spinlock.h | 11 | ||||
-rw-r--r-- | include/usb/composite.h | 1 |
13 files changed, 23 insertions, 7 deletions
diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h index f5511c969c..515353e277 100644 --- a/drivers/mtd/nand/denali.h +++ b/drivers/mtd/nand/denali.h @@ -21,6 +21,7 @@ #define __DENALI_H__ #include <linux/mtd/nand.h> +#include <linux/spinlock.h> #define DEVICE_RESET 0x0 #define DEVICE_RESET__BANK0 0x0001 diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c index f582fcd0c5..cba59b1585 100644 --- a/drivers/usb/gadget/f_acm.c +++ b/drivers/usb/gadget/f_acm.c @@ -17,6 +17,7 @@ #include <common.h> #include <usb/cdc.h> #include <linux/err.h> +#include <linux/spinlock.h> #include <asm/byteorder.h> #include <usb/composite.h> diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index 46265d6190..a21ddd5df2 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h @@ -39,6 +39,7 @@ #include <notifier.h> #include <usb/usb.h> #include <usb/phy.h> +#include <linux/spinlock.h> struct musb; struct musb_hw_ep; diff --git a/drivers/usb/musb/phy-am335x-control.c b/drivers/usb/musb/phy-am335x-control.c index 214ae71776..809c5182c0 100644 --- a/drivers/usb/musb/phy-am335x-control.c +++ b/drivers/usb/musb/phy-am335x-control.c @@ -2,6 +2,7 @@ #include <init.h> #include <io.h> #include <linux/err.h> +#include <linux/spinlock.h> struct phy_control { void (*phy_power)(struct phy_control *phy_ctrl, u32 id, bool on); diff --git a/drivers/video/imx-ipu-v3/imx-ipu-v3.h b/drivers/video/imx-ipu-v3/imx-ipu-v3.h index 783535ea54..8deb2951bf 100644 --- a/drivers/video/imx-ipu-v3/imx-ipu-v3.h +++ b/drivers/video/imx-ipu-v3/imx-ipu-v3.h @@ -16,6 +16,7 @@ #include <fb.h> #include <video/vpl.h> #include <video/fourcc.h> +#include <linux/spinlock.h> struct ipu_soc; diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index dc2611f732..98fd26d2e0 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -23,6 +23,7 @@ #include <linux/pstore.h> #include <linux/string.h> #include <linux/kernel.h> +#include <linux/spinlock.h> #include <malloc.h> #include <printk.h> #include <module.h> diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index dc31ed16f9..66b4975a30 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -29,6 +29,7 @@ #include <linux/types.h> #include <linux/string.h> #include <linux/log2.h> +#include <linux/spinlock.h> #include <malloc.h> #include <printk.h> #include <stdio.h> diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index a4f85231c4..0164551c14 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h @@ -41,6 +41,7 @@ #include <linux/mount.h> #include <linux/path.h> #include <linux/sched.h> +#include <linux/spinlock.h> #include <linux/ctype.h> #include <linux/math64.h> #include <linux/rbtree.h> diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h index 3433631835..91b67e1e63 100644 --- a/include/linux/barebox-wrapper.h +++ b/include/linux/barebox-wrapper.h @@ -35,13 +35,6 @@ typedef int gfp_t; #define MODULE_LICENSE(x) #define MODULE_ALIAS(x) -typedef int spinlock_t; -#define spin_lock_init(...) -#define spin_lock(...) -#define spin_unlock(...) -#define spin_lock_irqsave(lock, flags) do { flags = 0; } while (0) -#define spin_unlock_irqrestore(lock, flags) do { flags = flags; } while (0) - #define mutex_init(...) #define mutex_lock(...) #define mutex_unlock(...) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index ea69b68a84..9f33e75f31 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -10,6 +10,8 @@ * with heavy changes by Linus Torvalds */ +#include <linux/spinlock.h> + #define IS_ROOT(x) ((x) == (x)->d_parent) /* The hash is always the low bits of hash_len */ diff --git a/include/linux/fs.h b/include/linux/fs.h index e9fb8813ca..8419ebd4ee 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -6,6 +6,7 @@ #include <linux/time.h> #include <linux/mount.h> #include <linux/path.h> +#include <linux/spinlock.h> /* Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM. */ diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h new file mode 100644 index 0000000000..b32114f4f0 --- /dev/null +++ b/include/linux/spinlock.h @@ -0,0 +1,11 @@ +#ifndef __LINUX_SPINLOCK_H +#define __LINUX_SPINLOCK_H + +typedef int spinlock_t; +#define spin_lock_init(...) +#define spin_lock(...) +#define spin_unlock(...) +#define spin_lock_irqsave(lock, flags) do { flags = 0; } while (0) +#define spin_unlock_irqrestore(lock, flags) do { flags = flags; } while (0) + +#endif /* __LINUX_SPINLOCK_H */ diff --git a/include/usb/composite.h b/include/usb/composite.h index d24454c748..f30568a54f 100644 --- a/include/usb/composite.h +++ b/include/usb/composite.h @@ -38,6 +38,7 @@ #include <usb/gadget.h> #include <linux/log2.h> #include <linux/stringify.h> +#include <linux/spinlock.h> /* * USB function drivers should return USB_GADGET_DELAYED_STATUS if they |