Con Kolivas <[email protected]> wrote:
>
> +enum sleep_type {
> + SLEEP_NORMAL,
> + SLEEP_NONINTERACTIVE,
> + SLEEP_INTERACTIVE,
> + SLEEP_INTERRUPTED,
> +};
If you make these 1, 2, 4 and 8
> +static inline int interactive_sleep(enum sleep_type sleep_type)
> +{
> + return (sleep_type == SLEEP_INTERACTIVE ||
> + sleep_type == SLEEP_INTERRUPTED);
> +}
then this can be
return sleep_type & (SLEEP_INTERACTIVE|SLEEP_INTERRUPTED);
which would save, oh, about nothing.
-
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]