]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon (coretemp): Fix build breakage if SMP is undefined
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 28 Sep 2010 01:01:49 +0000 (18:01 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 28 Sep 2010 11:18:51 +0000 (04:18 -0700)
commit596ceb22d4834be9f8adf1823086d48e1c77f59f
treeeb95c35c86cd364794b3e77886770831469bd6ee
parent3787042c1e80cfd1194230a46e6e40a8483ed8b2
hwmon (coretemp): Fix build breakage if SMP is undefined

Commit f68c70e65a52c081b7d65840e6a2f3807da632d0 introduced
a build breakage if CONFIG_SMP is undefined. This commit
fixes the problem.

This fix is only a workaround. For a real fix, cpu_sibling_mask() should
be defined in UP include code, eg in linux/smp.h, and asm/smp.h should not be
included directly. This fix is currently not possible because asm/smp.h defines
cpu_sibling_mask() unconditionally and is included directly from many source
files.

Reported-by: Ingo Molnar <mingo@elte.hu>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
drivers/hwmon/coretemp.c