x86: fix build warning when CONFIG_NUMA not defined.
authorMike Travis <travis@sgi.com>
Thu, 15 Jan 2009 17:19:32 +0000 (09:19 -0800)
committerMike Travis <travis@sgi.com>
Thu, 15 Jan 2009 17:19:32 +0000 (09:19 -0800)
commitf2a082711905312dc7b6675e913fee0c4689f7ae
treeae8a9d2e0eaac2509b0df7ecda528b968ad24659
parente46d51787e23a607cac5f593ac9926743a636dff
x86: fix build warning when CONFIG_NUMA not defined.

Impact: fix build warning

The macro cpu_to_node did not reference it's argument, and instead
simply returned a 0.  This causes a "unused variable" warning if
it's the only reference in a function (show_cache_disable).

Replace it with the more correct inline function.

Signed-off-by: Mike Travis <travis@sgi.com>
arch/x86/include/asm/topology.h