Hi. Pavel Machek wrote: >> @@ -437,7 +439,7 @@ static int enough_swap(unsigned int nr_pages) >> unsigned int free_swap = count_swap_pages(root_swap, 1); >> >> pr_debug("PM: Free swap pages: %u\n", free_swap); >> - return free_swap > (nr_pages + PAGES_FOR_IO) * 1.01; >> + return free_swap > (nr_pages + PAGES_FOR_IO) * .6; >> } >> >> /** > > This is buggy and was buggy before. We may not use floating point in > kernel... Yeah. Already rewritten. I was trying to simplify things for swsusp, but decided I should just do it right first time. Regards, Nigel _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm