X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=mm%2Fpage_ext.c;h=dfb91653d359eecb15cc57f5e36d702d3b4b13a9;hb=2d338201d5311bcd79d42f66df4cecbcbc5f4f2c;hp=293b2685fc489d9767a3736c7e0acf8075ca77a3;hpb=ca31fef11dc83e672415d5925a134749761329bd;p=linux-2.6-microblaze.git diff --git a/mm/page_ext.c b/mm/page_ext.c index 293b2685fc48..dfb91653d359 100644 --- a/mm/page_ext.c +++ b/mm/page_ext.c @@ -58,11 +58,21 @@ * can utilize this callback to initialize the state of it correctly. */ +#if defined(CONFIG_PAGE_IDLE_FLAG) && !defined(CONFIG_64BIT) +static bool need_page_idle(void) +{ + return true; +} +struct page_ext_operations page_idle_ops = { + .need = need_page_idle, +}; +#endif + static struct page_ext_operations *page_ext_ops[] = { #ifdef CONFIG_PAGE_OWNER &page_owner_ops, #endif -#if defined(CONFIG_IDLE_PAGE_TRACKING) && !defined(CONFIG_64BIT) +#if defined(CONFIG_PAGE_IDLE_FLAG) && !defined(CONFIG_64BIT) &page_idle_ops, #endif };