예제 #1
0
static int __init page_poison_nohibernate_setup(char *str)
{
#ifdef CONFIG_PAGE_POISONING_ZERO
	/*
	 * The zeroing option for page poison skips the checks on alloc.
	 * since hibernation doesn't save free pages there's no way to
	 * guarantee the pages will still be zeroed.
	 */
	if (!strcmp(str, "on")) {
		pr_info("Disabling hibernation due to page poisoning\n");
		return nohibernate_setup(str);
	}
#endif
	return 1;
}
예제 #2
0
static int __init kaslr_nohibernate_setup(char *str)
{
	return nohibernate_setup(str);
}