projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b101ce
)
usbfs micro optimitation
author
Oliver Neukum
<oliver@neukum.org>
Fri, 20 Apr 2007 18:50:48 +0000
(20:50 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 27 Apr 2007 20:28:42 +0000
(13:28 -0700)
the memory barrier is needed only with smp.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/devio.c
b/drivers/usb/core/devio.c
index e023f3d562483cc2c7dfd1052d83b2eb7ca30b39..927a181120a9123311313abaa6c58a1f34484048 100644
(file)
--- a/
drivers/usb/core/devio.c
+++ b/
drivers/usb/core/devio.c
@@
-580,7
+580,7
@@
static int usbdev_open(struct inode *inode, struct file *file)
ps->disccontext = NULL;
ps->ifclaimed = 0;
security_task_getsecid(current, &ps->secid);
- wmb();
+
smp_
wmb();
list_add_tail(&ps->list, &dev->filelist);
file->private_data = ps;
out: