Re: Fix suspend with pccardd running

From: Felipe Alfaro Solana (felipe_alfaro@linuxmail.org)
Date: Wed May 28 2003 - 17:55:33 EST


On Wed, 2003-05-28 at 23:27, Pavel Machek wrote:
> Hi!
>
> This fixes suspend when pccards are used... Please apply,
>
> Pavel
>
> --- /usr/src/tmp/linux/drivers/pcmcia/cs.c 2003-05-27 13:43:10.000000000 +0200
> +++ /usr/src/linux/drivers/pcmcia/cs.c 2003-05-28 23:09:47.000000000 +0200
> @@ -48,6 +48,7 @@
> #include <linux/pm.h>
> #include <linux/pci.h>
> #include <linux/device.h>
> +#include <linux/suspend.h>
> #include <asm/system.h>
> #include <asm/irq.h>
>
> @@ -783,6 +784,9 @@
> }
>
> schedule();
> + if (current->flags & PF_FREEZE)
> + refrigerator(PF_IOTHREAD);
> +
> if (!skt->thread)
> break;
> }

This fixes the pccard-becomes-a-CPU-hog for me when resuming after
suspending (S3) using 2.5.70-mm1 and ACPI. Nice work!

-
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/