Lines Matching refs:thermal_handler
108 static struct platform_profile_handler *thermal_handler; variable
247 thermal_handler = kzalloc(sizeof(*thermal_handler), GFP_KERNEL); in thermal_init()
248 if (!thermal_handler) in thermal_init()
250 thermal_handler->profile_get = thermal_platform_profile_get; in thermal_init()
251 thermal_handler->profile_set = thermal_platform_profile_set; in thermal_init()
254 set_bit(PLATFORM_PROFILE_QUIET, thermal_handler->choices); in thermal_init()
256 set_bit(PLATFORM_PROFILE_COOL, thermal_handler->choices); in thermal_init()
258 set_bit(PLATFORM_PROFILE_BALANCED, thermal_handler->choices); in thermal_init()
260 set_bit(PLATFORM_PROFILE_PERFORMANCE, thermal_handler->choices); in thermal_init()
263 ret = platform_profile_register(thermal_handler); in thermal_init()
265 kfree(thermal_handler); in thermal_init()
266 thermal_handler = NULL; in thermal_init()
274 if (thermal_handler) { in thermal_cleanup()
276 kfree(thermal_handler); in thermal_cleanup()