Re: [1/1] superio: change scx200 module name to scx.

From: Nish Aravamudan
Date: Mon Jan 24 2005 - 16:50:08 EST


On Mon, 24 Jan 2005 23:37:20 +0300, Evgeniy Polyakov
<johnpol@xxxxxxxxxxx> wrote:
> Change scx200 module name to scx.
>
> Signed-off-by: Evgeniy Polyakov <johnpol@xxxxxxxxxxx>
>
> --- linux-2.6/drivers/superio/scx.c 1970-01-01 03:00:00.000000000 +0300
> +++ linux-2.6/drivers/superio/scx.c 2005-01-24 22:06:15.000000000 +0300

<snip>

> +static void scx200_fini(void)
> +{
> + sc_del_sc_dev(&scx200_dev);
> +
> + while (atomic_read(&scx200_dev.refcnt))
> + {
> + printk(KERN_INFO "Waiting for %s to became free: refcnt=%d.\n",
> + scx200_dev.name, atomic_read(&scx200_dev.refcnt));
> + set_current_state(TASK_INTERRUPTIBLE);
> + schedule_timeout(HZ);
> +
> + if (current->flags & PF_FREEZE)
> + refrigerator(PF_FREEZE);
> +
> + if (signal_pending(current))
> + flush_signals(current);
> + }

<snip>

I believe this schedule_timeout() call can be an msleep_interruptible(1000).

Thanks,
Nish
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/