diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a8182c89de5920b5eb91809676ee884d89bbfcaf..78ce90dd671f186e02323e45d3c10022bbecf5ec 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3224,7 +3224,7 @@ static int __zone_pcp_update(void *data) int cpu; unsigned long batch = zone_batchsize(zone), flags; - for (cpu = 0; cpu < NR_CPUS; cpu++) { + for_each_possible_cpu(cpu) { struct per_cpu_pageset *pset; struct per_cpu_pages *pcp;