summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2007-04-20 20:50:48 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 13:28:42 -0700
commit527660a819f513edc52fea6bcb4068ce1d4d966b (patch)
treedf4bd3fe6a5d9819a31f7ad50c98f852a9032789 /drivers
parent1b101ceb9162086035ce0c9cbe83ca7b4845179a (diff)
downloadblackbird-op-linux-527660a819f513edc52fea6bcb4068ce1d4d966b.tar.gz
blackbird-op-linux-527660a819f513edc52fea6bcb4068ce1d4d966b.zip
usbfs micro optimitation
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/devio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index e023f3d56248..927a181120a9 100644
--- 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:
OpenPOWER on IntegriCloud