Something is changing the firmware loading timeout

Chuck Ebbert cebbert at redhat.com
Mon Mar 26 22:19:06 UTC 2007


Chuck Ebbert wrote:
> --- linux-2.6.20.noarch/drivers/base/firmware_class.c.orig	2007-03-26 14:20:38.000000000 -0400
> +++ linux-2.6.20.noarch/drivers/base/firmware_class.c	2007-03-26 18:10:09.000000000 -0400
> @@ -81,8 +81,15 @@
>  firmware_timeout_store(struct class *class, const char *buf, size_t count)
>  {
>  	loading_timeout = simple_strtol(buf, NULL, 10);
> -	if (loading_timeout < 0)
> +	if (loading_timeout <= 0)
>  		loading_timeout = 0;
> +	else if (loading_timeout < 60) {
> +		if (printk_ratelimit)

+		if (printk_ratelimit())

> +			printk(KERN_INFO
> +			       "firmware_class: attempt to set timeout to %d\n",
> +			       loading_timeout);
> +		loading_timeout = 60;
> +	}
>  	return count;
>  }




More information about the Fedora-kernel-list mailing list