From: Tejun Heo Date: Tue, 2 Sep 2014 18:46:01 +0000 (-0400) Subject: percpu: remove @may_alloc from pcpu_get_pages() X-Git-Tag: omap-for-v3.19/prcm-cleanup~131^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdb4cba5a3c9fa27240d04f4f8dad316b10d995b;p=pandora-kernel.git percpu: remove @may_alloc from pcpu_get_pages() pcpu_get_pages() creates the temp pages array if not already allocated and returns the pointer to it. As the function is called from both [de]population paths and depopulation can only happen after at least one successful population, the param doesn't make any difference - the allocation will always happen on the population path anyway. Remove @may_alloc from pcpu_get_pages(). Also, add an lockdep assertion pcpu_alloc_mutex instead of vaguely stating that the exclusion is the caller's responsibility. Signed-off-by: Tejun Heo --- Reading git-diff-tree failed