Introduce include/linux/mutex.h
Move mutex related defines to its original place. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
baa7fe1d15
commit
7814ae61ab
|
@ -16,6 +16,7 @@
|
|||
#include <fb.h>
|
||||
#include <video/vpl.h>
|
||||
#include <video/fourcc.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
||||
struct ipu_soc;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <clock.h>
|
||||
#include <driver.h>
|
||||
#include <init.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <mach/generic.h>
|
||||
#include <mach/imx6-regs.h>
|
||||
#include <mach/imx53-regs.h>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <linux/string.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <malloc.h>
|
||||
#include <printk.h>
|
||||
#include <module.h>
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include <linux/path.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <linux/math64.h>
|
||||
#include <linux/rbtree.h>
|
||||
|
|
|
@ -35,11 +35,6 @@ typedef int gfp_t;
|
|||
#define MODULE_LICENSE(x)
|
||||
#define MODULE_ALIAS(x)
|
||||
|
||||
#define mutex_init(...)
|
||||
#define mutex_lock(...)
|
||||
#define mutex_unlock(...)
|
||||
struct mutex { int i; };
|
||||
|
||||
struct rw_semaphore { int i; };
|
||||
|
||||
#define __user
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <linux/mount.h>
|
||||
#include <linux/path.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
/* Page cache limit. The filesystems should put that into their s_maxbytes
|
||||
limits, otherwise bad things can happen in VM. */
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#ifndef __LINUX_MTD_SPI_NOR_H
|
||||
#define __LINUX_MTD_SPI_NOR_H
|
||||
|
||||
#include <linux/mutex.h>
|
||||
|
||||
/*
|
||||
* Note on opcode nomenclature: some opcodes have a format like
|
||||
* SPINOR_OP_FUNCTION{4,}_x_y_z. The numbers x, y, and z stand for the number
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Mutexes: blocking mutual exclusion locks
|
||||
*
|
||||
* started by Ingo Molnar:
|
||||
*
|
||||
* Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
|
||||
*
|
||||
* This file contains the main data structure and API definitions.
|
||||
*/
|
||||
#ifndef __LINUX_MUTEX_H
|
||||
#define __LINUX_MUTEX_H
|
||||
|
||||
#define mutex_init(...)
|
||||
#define mutex_lock(...)
|
||||
#define mutex_unlock(...)
|
||||
struct mutex { int i; };
|
||||
|
||||
#endif /* __LINUX_MUTEX_H */
|
Loading…
Reference in New Issue