Skip to content

Commit

Permalink
thermal: fix x86_pkg_temp_thermal.c build and Kconfig
Browse files Browse the repository at this point in the history
Fix build error in x86_pkg_temp_thermal.c.  It requires that
X86_MCE & X86_THERMAL_VECTOR be enabled, so depend on the latter symbol,
since it depends on X86_MCE (indirectly).

Also, X86_PKG_TEMP_THERMAL is already inside an "if THERMAL" block,
so remove that duplicated dependency.

ERROR: "platform_thermal_package_rate_control" [drivers/thermal/x86_pkg_temp_thermal.ko] undefined!
ERROR: "platform_thermal_package_notify" [drivers/thermal/x86_pkg_temp_thermal.ko] undefined!

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
  • Loading branch information
Randy Dunlap authored and Zhang Rui committed Jun 17, 2013
1 parent 23be63f commit b3ba020
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/thermal/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ config INTEL_POWERCLAMP

config X86_PKG_TEMP_THERMAL
tristate "X86 package temperature thermal driver"
depends on THERMAL
depends on X86
depends on X86_THERMAL_VECTOR
select THERMAL_GOV_USER_SPACE
default m
help
Expand Down

0 comments on commit b3ba020

Please sign in to comment.