Re: [6/25] Merge pmdisk and swsusp

From: Pavel Machek
Date: Sun Jul 18 2004 - 17:11:53 EST


Hi!

> +static void calc_order(void)
> +{
> + int diff;
> + int order;
> +
> + order = get_bitmask_order(SUSPEND_PD_PAGES(nr_copy_pages));
> + nr_copy_pages += 1 << order;
> + do {
> + diff = get_bitmask_order(SUSPEND_PD_PAGES(nr_copy_pages)) - order;
> + if (diff) {
> + order += diff;
> + nr_copy_pages += 1 << diff;
> + }
> + } while(diff);
> + pagedir_order = order;
> +}

This code is "interesting". Perhaps at least comment would be good
here?
Pavel
--
Horseback riding is like software...
...vgf orggre jura vgf serr.
-
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/