提交 d801c140 编写于 作者: D Dominik Brodowski

pcmcia: remove useless msleep in ds.c

As this is the socket thread (pccardd) starting up, we do not have
anything to wait for in ds.c. Instead, wait the same amount of time
in pccardd to allow userspace to catch up and - possibly - execute
pcmcia-socket-startup.
Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
上级 d700518a
...@@ -689,6 +689,9 @@ static int pccardd(void *__skt) ...@@ -689,6 +689,9 @@ static int pccardd(void *__skt)
complete(&skt->thread_done); complete(&skt->thread_done);
/* wait for userspace to catch up */
msleep(250);
set_freezable(); set_freezable();
for (;;) { for (;;) {
unsigned long flags; unsigned long flags;
......
...@@ -1356,12 +1356,6 @@ static int __devinit pcmcia_bus_add_socket(struct device *dev, ...@@ -1356,12 +1356,6 @@ static int __devinit pcmcia_bus_add_socket(struct device *dev,
return -ENODEV; return -ENODEV;
} }
/*
* Ugly. But we want to wait for the socket threads to have started up.
* We really should let the drivers themselves drive some of this..
*/
msleep(250);
ret = sysfs_create_bin_file(&dev->kobj, &pccard_cis_attr); ret = sysfs_create_bin_file(&dev->kobj, &pccard_cis_attr);
if (ret) { if (ret) {
dev_printk(KERN_ERR, dev, "PCMCIA registration failed\n"); dev_printk(KERN_ERR, dev, "PCMCIA registration failed\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册