Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/thermal/thermal_sysfs.c thermal_cooling_device_stats_update() -> update_time_in_state()

Type Parameter Key Value
PARAM_VALUE 0 stats 4096-ptr_max
PARAM_VALUE 0 stats->lock.rlock.dep_map->name 0-255
BUF_SIZE 0 stats s32min-(-2),1-s32max
BUF_SIZE 0 stats s32min-(-2),1-s32max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cdev->lock
LOCK2 0 &stats->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct cooling_dev_stats)->lock
TYPE_LOCK (struct thermal_cooling_device)->lock

drivers/thermal/thermal_sysfs.c time_in_state_ms_show() -> update_time_in_state()

Type Parameter Key Value
PARAM_VALUE 0 stats 4096-ptr_max
PARAM_VALUE 0 stats->lock.rlock.dep_map->name 0-255
BUF_SIZE 0 stats s32min-(-2),1-s32max
BUF_SIZE 0 stats s32min-(-2),1-s32max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cdev->lock
LOCK2 &of->mutex
LOCK2 0 &stats->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct cooling_dev_stats)->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct thermal_cooling_device)->lock