Home
last modified time | relevance | path

Searched refs:freezer (Results 1 – 13 of 13) sorted by relevance

/linux/kernel/cgroup/
H A Dlegacy_freezer.c37 struct freezer { struct
44 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer() argument
46 return css ? container_of(css, struct freezer, css) : NULL; in css_freezer()
49 static inline struct freezer *task_freezer(struct task_struct *task) in task_freezer()
54 static struct freezer *parent_freezer(struct freezer *freezer) in parent_freezer() argument
56 return css_freezer(freezer->css.parent); in parent_freezer()
82 struct freezer *freezer; in freezer_css_alloc() local
84 freezer = kzalloc_obj(struct freezer); in freezer_css_alloc()
85 if (!freezer) in freezer_css_alloc()
88 return &freezer->css; in freezer_css_alloc()
[all …]
H A Dfreezer.c48 cgrp->freezer.nr_frozen_descendants += desc; in cgroup_propagate_frozen()
50 (cgrp->freezer.nr_frozen_descendants != in cgroup_propagate_frozen()
54 cgrp->freezer.nr_frozen_descendants -= desc; in cgroup_propagate_frozen()
76 cgrp->freezer.nr_frozen_tasks == __cgroup_task_count(cgrp); in cgroup_update_frozen()
88 cgrp->freezer.nr_frozen_tasks++; in cgroup_inc_frozen_cnt()
96 cgrp->freezer.nr_frozen_tasks--; in cgroup_dec_frozen_cnt()
97 WARN_ON_ONCE(cgrp->freezer.nr_frozen_tasks < 0); in cgroup_dec_frozen_cnt()
182 write_seqcount_begin(&cgrp->freezer.freeze_seq); in cgroup_do_freeze()
185 cgrp->freezer.freeze_start_nsec = ts_nsec; in cgroup_do_freeze()
188 cgrp->freezer.frozen_nsec += (ts_nsec - in cgroup_do_freeze()
[all …]
H A DMakefile2 obj-y := cgroup.o rstat.o namespace.o cgroup-v1.o freezer.o
H A Dcgroup.c3873 sequence = read_seqcount_begin(&cgrp->freezer.freeze_seq); in cgroup_core_local_stat_show()
3874 freeze_time = cgrp->freezer.frozen_nsec; in cgroup_core_local_stat_show()
3878 cgrp->freezer.freeze_start_nsec); in cgroup_core_local_stat_show()
3879 } while (read_seqcount_retry(&cgrp->freezer.freeze_seq, sequence)); in cgroup_core_local_stat_show()
4149 seq_printf(seq, "%d\n", cgrp->freezer.freeze); in cgroup_freeze_show()
5897 cgrp->freezer.e_freeze = parent->freezer.e_freeze; in cgroup_create()
5898 seqcount_spinlock_init(&cgrp->freezer.freeze_seq, &css_set_lock); in cgroup_create()
5899 if (cgrp->freezer.e_freeze) { in cgroup_create()
5907 cgrp->freezer.freeze_start_nsec = ktime_get_ns(); in cgroup_create()
5937 if (cgrp->freezer.e_freeze) in cgroup_create()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dbcmsdh.c797 sdiodev->freezer = kzalloc_obj(*sdiodev->freezer); in brcmf_sdiod_freezer_attach()
798 if (!sdiodev->freezer) in brcmf_sdiod_freezer_attach()
800 atomic_set(&sdiodev->freezer->thread_count, 0); in brcmf_sdiod_freezer_attach()
801 atomic_set(&sdiodev->freezer->freezing, 0); in brcmf_sdiod_freezer_attach()
802 init_waitqueue_head(&sdiodev->freezer->thread_freeze); in brcmf_sdiod_freezer_attach()
803 init_completion(&sdiodev->freezer->resumed); in brcmf_sdiod_freezer_attach()
809 if (sdiodev->freezer) { in brcmf_sdiod_freezer_detach()
810 WARN_ON(atomic_read(&sdiodev->freezer->freezing)); in brcmf_sdiod_freezer_detach()
811 kfree(sdiodev->freezer); in brcmf_sdiod_freezer_detach()
812 sdiodev->freezer = NULL; in brcmf_sdiod_freezer_detach()
[all …]
H A Dsdio.h194 struct brcmf_sdiod_freezer *freezer; member
/linux/Documentation/power/
H A Dfreezing-of-tasks.rst33 in kernel/freezer.c), which changes the task's state to TASK_FROZEN, and makes
36 referred to as 'the freezer' (these functions are defined in
37 kernel/power/process.c, kernel/freezer.c & include/linux/freezer.h). User space
41 try_to_freeze() function (defined in include/linux/freezer.h), that checks
71 If a freezable kernel thread is not put to the frozen state after the freezer
241 consequence, the freezer would not be able to freeze that task, leading to
245 since they ask the freezer to skip freezing this task, since it is anyway
H A Dbasic-pm-debugging.rst52 freezer
105 should try the test modes starting from "freezer", through "devices", "platform"
109 If the "freezer" test fails, there is a task that cannot be frozen (in that case
112 that there is a problem with the tasks freezer subsystem that should be
224 Namely, after writing "freezer", "devices", "platform", "processors", or "core"
/linux/include/linux/
H A Dcgroup_subsys.h37 SUBSYS(freezer)
H A Dcgroup-defs.h622 struct cgroup_freezer_state freezer; member
/linux/kernel/
H A DMakefile64 obj-$(CONFIG_FREEZER) += freezer.o
/linux/Documentation/admin-guide/
H A Ddynamic-debug-howto.rst152 file kernel/freezer.c # ie column 1 of control file
/linux/
H A DMAINTAINERS10390 F: include/linux/freezer.h
10391 F: kernel/freezer.c
11302 F: include/linux/freezer.h
25500 F: include/linux/freezer.h