Defined in 2 files as a function:
- drivers/base/power/wakeup.c, line 640 (as a function)
- drivers/base/power/wakeup.c, line 646 (as a function)
Referenced in 1 files:
Smatch caller information:
drivers/base/power/wakeup.c pm_wakep_autosleep_enabled() -> update_prevent_sleep_time()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ws | 4096-ptr_max |
| DATA_SOURCE | 1 | now | r ktime_get |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &autosleep_lock | ||
| LOCK2 | global &wakeup_srcu | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &ws->lock | |
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct wakeup_source)->lock |
drivers/base/power/wakeup.c wakeup_source_deactivate() -> update_prevent_sleep_time()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ws | 4096-ptr_max |
| CAPPED_DATA | 0 | ws->active_count | 1 |
| CAPPED_DATA | 0 | ws->relax_count | 1 |
| DATA_SOURCE | 0 | ws | $0 |
| DATA_SOURCE | 1 | now | r ktime_get |
| PARAM_COMPARE | 0 | ws->active_count | == $0->relax_count |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &ws->lock | |
| TYPE_LOCK | (struct wakeup_source)->lock |