Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6188e10d
Commit
6188e10d
authored
Apr 18, 2008
by
Matthew Wilcox
Committed by
Matthew Wilcox
Apr 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert asm/semaphore.h users to linux/semaphore.h
Signed-off-by:
Matthew Wilcox
<
willy@linux.intel.com
>
parent
d7b1acd3
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
35 additions
and
36 deletions
+35
-36
Documentation/DocBook/kernel-locking.tmpl
Documentation/DocBook/kernel-locking.tmpl
+3
-3
arch/ia64/kernel/salinfo.c
arch/ia64/kernel/salinfo.c
+1
-1
drivers/base/core.c
drivers/base/core.c
+1
-1
drivers/char/snsc.h
drivers/char/snsc.h
+1
-1
drivers/firewire/fw-device.c
drivers/firewire/fw-device.c
+2
-1
drivers/i2c/i2c-core.c
drivers/i2c/i2c-core.c
+1
-1
drivers/ieee1394/nodemgr.c
drivers/ieee1394/nodemgr.c
+1
-1
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/user_mad.c
+1
-1
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_dev.h
+1
-2
drivers/input/serio/hp_sdc_mlc.c
drivers/input/serio/hp_sdc_mlc.c
+1
-1
drivers/macintosh/adb.c
drivers/macintosh/adb.c
+1
-1
drivers/macintosh/windfarm_smu_sat.c
drivers/macintosh/windfarm_smu_sat.c
+1
-1
drivers/net/3c527.c
drivers/net/3c527.c
+1
-1
drivers/net/hamradio/6pack.c
drivers/net/hamradio/6pack.c
+1
-1
drivers/s390/cio/qdio.c
drivers/s390/cio/qdio.c
+1
-1
drivers/scsi/aacraid/commctrl.c
drivers/scsi/aacraid/commctrl.c
+1
-1
drivers/scsi/aacraid/commsup.c
drivers/scsi/aacraid/commsup.c
+1
-1
drivers/scsi/aacraid/dpcsup.c
drivers/scsi/aacraid/dpcsup.c
+1
-1
drivers/scsi/megaraid/megaraid_ioctl.h
drivers/scsi/megaraid/megaraid_ioctl.h
+1
-1
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_def.h
+1
-1
drivers/watchdog/sc1200wdt.c
drivers/watchdog/sc1200wdt.c
+1
-1
fs/jffs2/jffs2_fs_i.h
fs/jffs2/jffs2_fs_i.h
+1
-1
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/jffs2_fs_sb.h
+1
-1
fs/reiserfs/journal.c
fs/reiserfs/journal.c
+1
-1
fs/xfs/linux-2.6/sema.h
fs/xfs/linux-2.6/sema.h
+1
-1
include/linux/device.h
include/linux/device.h
+1
-1
include/linux/fs.h
include/linux/fs.h
+1
-1
include/linux/hil_mlc.h
include/linux/hil_mlc.h
+1
-1
include/linux/i2o.h
include/linux/i2o.h
+1
-1
include/linux/memory.h
include/linux/memory.h
+1
-2
include/linux/parport.h
include/linux/parport.h
+1
-1
lib/kernel_lock.c
lib/kernel_lock.c
+1
-1
No files found.
Documentation/DocBook/kernel-locking.tmpl
View file @
6188e10d
...
...
@@ -241,7 +241,7 @@
</para>
<para>
The third type is a semaphore
(<filename class="headerfile">include/
asm
/semaphore.h</filename>): it
(<filename class="headerfile">include/
linux
/semaphore.h</filename>): it
can have more than one holder at any time (the number decided at
initialization time), although it is most commonly used as a
single-holder lock (a mutex). If you can't get a semaphore, your
...
...
@@ -290,7 +290,7 @@
<para>
If you have a data structure which is only ever accessed from
user context, then you can use a simple semaphore
(<filename>linux/
asm/semaphore.h</filename>) to protect it. This
(<filename>linux/
linux/semaphore.h</filename>) to protect it. This
is the most trivial case: you initialize the semaphore to the number
of resources available (usually 1), and call
<function>down_interruptible()</function> to grab the semaphore, and
...
...
@@ -1656,7 +1656,7 @@ the amount of locking which needs to be done.
#include <linux/slab.h>
#include <linux/string.h>
+#include <linux/rcupdate.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <asm/errno.h>
struct object
...
...
arch/ia64/kernel/salinfo.c
View file @
6188e10d
...
...
@@ -44,8 +44,8 @@
#include <linux/smp.h>
#include <linux/timer.h>
#include <linux/vmalloc.h>
#include <linux/semaphore.h>
#include <asm/semaphore.h>
#include <asm/sal.h>
#include <asm/uaccess.h>
...
...
drivers/base/core.c
View file @
6188e10d
...
...
@@ -20,7 +20,7 @@
#include <linux/notifier.h>
#include <linux/genhd.h>
#include <linux/kallsyms.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include "base.h"
#include "power/power.h"
...
...
drivers/char/snsc.h
View file @
6188e10d
...
...
@@ -22,8 +22,8 @@
#include <linux/kobject.h>
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/semaphore.h>
#include <asm/sn/types.h>
#include <asm/semaphore.h>
#define CHUNKSIZE 127
...
...
drivers/firewire/fw-device.c
View file @
6188e10d
...
...
@@ -26,7 +26,8 @@
#include <linux/delay.h>
#include <linux/idr.h>
#include <linux/string.h>
#include <asm/semaphore.h>
#include <linux/rwsem.h>
#include <linux/semaphore.h>
#include <asm/system.h>
#include <linux/ctype.h>
#include "fw-transaction.h"
...
...
drivers/i2c/i2c-core.c
View file @
6188e10d
...
...
@@ -35,8 +35,8 @@
#include <linux/completion.h>
#include <linux/hardirq.h>
#include <linux/irqflags.h>
#include <linux/semaphore.h>
#include <asm/uaccess.h>
#include <asm/semaphore.h>
#include "i2c-core.h"
...
...
drivers/ieee1394/nodemgr.c
View file @
6188e10d
...
...
@@ -18,8 +18,8 @@
#include <linux/moduleparam.h>
#include <linux/mutex.h>
#include <linux/freezer.h>
#include <linux/semaphore.h>
#include <asm/atomic.h>
#include <asm/semaphore.h>
#include "csr.h"
#include "highlevel.h"
...
...
drivers/infiniband/core/user_mad.c
View file @
6188e10d
...
...
@@ -46,9 +46,9 @@
#include <linux/mutex.h>
#include <linux/kref.h>
#include <linux/compat.h>
#include <linux/semaphore.h>
#include <asm/uaccess.h>
#include <asm/semaphore.h>
#include <rdma/ib_mad.h>
#include <rdma/ib_user_mad.h>
...
...
drivers/infiniband/hw/mthca/mthca_dev.h
View file @
6188e10d
...
...
@@ -46,8 +46,7 @@
#include <linux/timer.h>
#include <linux/mutex.h>
#include <linux/list.h>
#include <asm/semaphore.h>
#include <linux/semaphore.h>
#include "mthca_provider.h"
#include "mthca_doorbell.h"
...
...
drivers/input/serio/hp_sdc_mlc.c
View file @
6188e10d
...
...
@@ -40,7 +40,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/string.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#define PREFIX "HP SDC MLC: "
...
...
drivers/macintosh/adb.c
View file @
6188e10d
...
...
@@ -37,9 +37,9 @@
#include <linux/device.h>
#include <linux/kthread.h>
#include <linux/platform_device.h>
#include <linux/semaphore.h>
#include <asm/uaccess.h>
#include <asm/semaphore.h>
#ifdef CONFIG_PPC
#include <asm/prom.h>
#include <asm/machdep.h>
...
...
drivers/macintosh/windfarm_smu_sat.c
View file @
6188e10d
...
...
@@ -13,7 +13,7 @@
#include <linux/init.h>
#include <linux/wait.h>
#include <linux/i2c.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <asm/prom.h>
#include <asm/smu.h>
#include <asm/pmac_low_i2c.h>
...
...
drivers/net/3c527.c
View file @
6188e10d
...
...
@@ -103,8 +103,8 @@ DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " Richard Procter <rnp@paradise.net.
#include <linux/ethtool.h>
#include <linux/completion.h>
#include <linux/bitops.h>
#include <linux/semaphore.h>
#include <asm/semaphore.h>
#include <asm/uaccess.h>
#include <asm/system.h>
#include <asm/io.h>
...
...
drivers/net/hamradio/6pack.c
View file @
6188e10d
...
...
@@ -33,7 +33,7 @@
#include <linux/init.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <asm/atomic.h>
#define SIXPACK_VERSION "Revision: 0.3.0"
...
...
drivers/s390/cio/qdio.c
View file @
6188e10d
...
...
@@ -38,11 +38,11 @@
#include <linux/proc_fs.h>
#include <linux/timer.h>
#include <linux/mempool.h>
#include <linux/semaphore.h>
#include <asm/ccwdev.h>
#include <asm/io.h>
#include <asm/atomic.h>
#include <asm/semaphore.h>
#include <asm/timex.h>
#include <asm/debug.h>
...
...
drivers/scsi/aacraid/commctrl.c
View file @
6188e10d
...
...
@@ -39,7 +39,7 @@
#include <linux/blkdev.h>
#include <linux/delay.h>
/* ssleep prototype */
#include <linux/kthread.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <asm/uaccess.h>
#include "aacraid.h"
...
...
drivers/scsi/aacraid/commsup.c
View file @
6188e10d
...
...
@@ -41,11 +41,11 @@
#include <linux/delay.h>
#include <linux/kthread.h>
#include <linux/interrupt.h>
#include <linux/semaphore.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_cmnd.h>
#include <asm/semaphore.h>
#include "aacraid.h"
...
...
drivers/scsi/aacraid/dpcsup.c
View file @
6188e10d
...
...
@@ -36,7 +36,7 @@
#include <linux/slab.h>
#include <linux/completion.h>
#include <linux/blkdev.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include "aacraid.h"
...
...
drivers/scsi/megaraid/megaraid_ioctl.h
View file @
6188e10d
...
...
@@ -18,7 +18,7 @@
#define _MEGARAID_IOCTL_H_
#include <linux/types.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include "mbox_defs.h"
...
...
drivers/scsi/qla2xxx/qla_def.h
View file @
6188e10d
...
...
@@ -25,7 +25,7 @@
#include <linux/firmware.h>
#include <linux/aer.h>
#include <linux/mutex.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
...
...
drivers/watchdog/sc1200wdt.c
View file @
6188e10d
...
...
@@ -38,8 +38,8 @@
#include <linux/init.h>
#include <linux/pnp.h>
#include <linux/fs.h>
#include <linux/semaphore.h>
#include <asm/semaphore.h>
#include <asm/io.h>
#include <asm/uaccess.h>
...
...
fs/jffs2/jffs2_fs_i.h
View file @
6188e10d
...
...
@@ -15,7 +15,7 @@
#include <linux/version.h>
#include <linux/rbtree.h>
#include <linux/posix_acl.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
struct
jffs2_inode_info
{
/* We need an internal mutex similar to inode->i_mutex.
...
...
fs/jffs2/jffs2_fs_sb.h
View file @
6188e10d
...
...
@@ -16,7 +16,7 @@
#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include <linux/completion.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <linux/timer.h>
#include <linux/wait.h>
#include <linux/list.h>
...
...
fs/reiserfs/journal.c
View file @
6188e10d
...
...
@@ -38,7 +38,7 @@
#include <asm/system.h>
#include <linux/time.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <linux/vmalloc.h>
#include <linux/reiserfs_fs.h>
...
...
fs/xfs/linux-2.6/sema.h
View file @
6188e10d
...
...
@@ -20,8 +20,8 @@
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/semaphore.h>
#include <asm/atomic.h>
#include <asm/semaphore.h>
/*
* sema_t structure just maps to struct semaphore in Linux kernel.
...
...
include/linux/device.h
View file @
6188e10d
...
...
@@ -20,7 +20,7 @@
#include <linux/types.h>
#include <linux/module.h>
#include <linux/pm.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <asm/atomic.h>
#include <asm/device.h>
...
...
include/linux/fs.h
View file @
6188e10d
...
...
@@ -287,9 +287,9 @@ extern int dir_notify_enable;
#include <linux/pid.h>
#include <linux/mutex.h>
#include <linux/capability.h>
#include <linux/semaphore.h>
#include <asm/atomic.h>
#include <asm/semaphore.h>
#include <asm/byteorder.h>
struct
export_operations
;
...
...
include/linux/hil_mlc.h
View file @
6188e10d
...
...
@@ -34,7 +34,7 @@
#include <linux/hil.h>
#include <linux/time.h>
#include <linux/interrupt.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
#include <linux/serio.h>
#include <linux/list.h>
...
...
include/linux/i2o.h
View file @
6188e10d
...
...
@@ -33,9 +33,9 @@
#include <linux/mempool.h>
#include <linux/mutex.h>
#include <linux/scatterlist.h>
#include <linux/semaphore.h>
/* Needed for MUTEX init macros */
#include <asm/io.h>
#include <asm/semaphore.h>
/* Needed for MUTEX init macros */
/* message queue empty */
#define I2O_QUEUE_EMPTY 0xffffffff
...
...
include/linux/memory.h
View file @
6188e10d
...
...
@@ -18,8 +18,7 @@
#include <linux/sysdev.h>
#include <linux/node.h>
#include <linux/compiler.h>
#include <asm/semaphore.h>
#include <linux/semaphore.h>
struct
memory_block
{
unsigned
long
phys_index
;
...
...
include/linux/parport.h
View file @
6188e10d
...
...
@@ -101,9 +101,9 @@ typedef enum {
#include <linux/spinlock.h>
#include <linux/wait.h>
#include <linux/irqreturn.h>
#include <linux/semaphore.h>
#include <asm/system.h>
#include <asm/ptrace.h>
#include <asm/semaphore.h>
/* Define this later. */
struct
parport
;
...
...
lib/kernel_lock.c
View file @
6188e10d
...
...
@@ -8,7 +8,7 @@
#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/kallsyms.h>
#include <
asm
/semaphore.h>
#include <
linux
/semaphore.h>
/*
* The 'big kernel semaphore'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment