Re: [RFC PATCH] Multi-threaded device probing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 25 July 2006 22:30, Greg KH wrote:
> --- gregkh-2.6.orig/include/linux/device.h
> +++ gregkh-2.6/include/linux/device.h
> @@ -105,6 +105,8 @@ struct device_driver {
>         void    (*shutdown)     (struct device * dev);
>         int     (*suspend)      (struct device * dev, pm_message_t state);
>         int     (*resume)       (struct device * dev);
> +
> +       unsigned int multithread_probe:1;
>  };
>  

Why use a bit field here? It ends up consuming sizeof(long) anyway
and causes more complex code, with no obvious benefit.

	Arnd <><
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux