From: Paul Jackson Date: Sun, 8 Jan 2006 09:02:03 +0000 (-0800) Subject: [PATCH] cpuset: mark number_of_cpusets read_mostly X-Git-Tag: v2.6.16-rc1~816 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7edc59628b2f5d6516b4677b3b56f5f056e45cd9;p=pandora-kernel.git [PATCH] cpuset: mark number_of_cpusets read_mostly Mark cpuset global 'number_of_cpusets' as __read_mostly. This global is accessed everytime a zone is considered in the zonelist loops beneath __alloc_pages, looking for a free memory page. If number_of_cpusets is just one, then we can short circuit the mems_allowed check. Since this global is read alot on a hot path, and written rarely, it is an excellent candidate for __read_mostly. Thanks to Christoph Lameter for the suggestion. Signed-off-by: Paul Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed