Lines Matching refs:event
3 * Thermal throttle event support code (such as syslog messaging and rate
45 * struct _thermal_state - Represent the current thermal event state
49 * high event.
135 #define define_therm_throt_device_show_func(event, name) \
137 static ssize_t therm_throt_device_show_##event##_##name( \
148 per_cpu(thermal_state, cpu).event.name); \
363 * therm_throt_process - Process thermal throttling event from interrupt
366 * event begins and once the event has ended.
373 static void therm_throt_process(bool new_event, int event, int level)
383 if (event == THERMAL_THROTTLING_EVENT)
385 else if (event == POWER_LIMIT_EVENT)
390 if (event == THERMAL_THROTTLING_EVENT)
392 else if (event == POWER_LIMIT_EVENT)
405 if (event != THERMAL_THROTTLING_EVENT)
435 static int thresh_event_valid(int level, int event)
443 state = (event == 0) ? &pstate->pkg_thresh0 :
446 state = (event == 0) ? &pstate->core_thresh0 :