Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
6188e10d
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
6188e10d
编写于
4月 18, 2008
作者:
M
Matthew Wilcox
提交者:
Matthew Wilcox
4月 18, 2008
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Convert asm/semaphore.h users to linux/semaphore.h
Signed-off-by:
N
Matthew Wilcox
<
willy@linux.intel.com
>
上级
d7b1acd3
变更
32
隐藏空白更改
内联
并排
Showing
32 changed file
with
35 addition
and
36 deletion
+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
未找到文件。
Documentation/DocBook/kernel-locking.tmpl
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录