Age | Commit message (Collapse) | Author |
|
Changes specific to vendor kernels
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
|
|
If CONFIG_THERMAL is not enabled, we don't have to add all backports
for the thermal framework. Actually this doesn't even work because we
try to use thermal_zone_device_register/unregister and they are not
present in the outer kernel, causing undefined symbols warnings:
WARNING: "thermal_zone_device_register" [/home/luca/iwlwifi/stack-dev/compat/compat.ko] undefined!
WARNING: "thermal_zone_device_unregister" [/home/luca/iwlwifi/stack-dev/compat/compat.ko] undefined!
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
There were some API changes in the thermal framework in kernel version
4.3 and also earlier in 3.10. Backport what is needed to support
older kernels.
The 4.3 change is a bit tricky, because it changes the prototypes of
some ops. The solution for that is to add hook functions that will
intercept the calls from the thermal framework and convert them to
calls that the backported driver provides (namely convert unsigned
longs to ints).
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
thermal_notify_framework() was renamed in kernel 3.10 and added in
kernel 3.8. Instead of calling the update only on the specified trip,
we call it on all in kernel < 3.8.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The signature of thermal_zone_device_register() changed for kernel <
3.10 multiple times, adapt the backports code to the old signature.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|