From: Oliver Neukum Date: Fri, 20 Apr 2007 18:50:48 +0000 (+0200) Subject: usbfs micro optimitation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=527660a819f513edc52fea6bcb4068ce1d4d966b;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git usbfs micro optimitation the memory barrier is needed only with smp. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- 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: