Home
last modified time | relevance | path

Searched refs:ca (Results 1 – 2 of 2) sorted by relevance

/kernel/sched/
Dcpuacct.c47 static inline struct cpuacct *parent_ca(struct cpuacct *ca) in parent_ca() argument
49 return css_ca(ca->css.parent); in parent_ca()
62 struct cpuacct *ca; in cpuacct_css_alloc() local
67 ca = kzalloc(sizeof(*ca), GFP_KERNEL); in cpuacct_css_alloc()
68 if (!ca) in cpuacct_css_alloc()
71 ca->cpuusage = alloc_percpu(u64); in cpuacct_css_alloc()
72 if (!ca->cpuusage) in cpuacct_css_alloc()
75 ca->cpustat = alloc_percpu(struct kernel_cpustat); in cpuacct_css_alloc()
76 if (!ca->cpustat) in cpuacct_css_alloc()
79 return &ca->css; in cpuacct_css_alloc()
[all …]
/kernel/power/
Dsnapshot.c195 chain_init(struct chain_allocator *ca, gfp_t gfp_mask, int safe_needed) in chain_init() argument
197 ca->chain = NULL; in chain_init()
198 ca->used_space = LINKED_PAGE_DATA_SIZE; in chain_init()
199 ca->gfp_mask = gfp_mask; in chain_init()
200 ca->safe_needed = safe_needed; in chain_init()
203 static void *chain_alloc(struct chain_allocator *ca, unsigned int size) in chain_alloc() argument
207 if (LINKED_PAGE_DATA_SIZE - ca->used_space < size) { in chain_alloc()
210 lp = get_image_page(ca->gfp_mask, ca->safe_needed); in chain_alloc()
214 lp->next = ca->chain; in chain_alloc()
215 ca->chain = lp; in chain_alloc()
[all …]