Lines Matching refs:cpu
39 int cpu; in sum_vm_events() local
44 for_each_online_cpu(cpu) { in sum_vm_events()
45 struct vm_event_state *this = &per_cpu(vm_event_states, cpu); in sum_vm_events()
71 void vm_events_fold_cpu(int cpu) in vm_events_fold_cpu() argument
73 struct vm_event_state *fold_state = &per_cpu(vm_event_states, cpu); in vm_events_fold_cpu()
171 int cpu; in refresh_zone_stat_thresholds() local
179 for_each_online_cpu(cpu) in refresh_zone_stat_thresholds()
180 per_cpu_ptr(zone->pageset, cpu)->stat_threshold in refresh_zone_stat_thresholds()
200 int cpu; in set_pgdat_percpu_threshold() local
210 for_each_online_cpu(cpu) in set_pgdat_percpu_threshold()
211 per_cpu_ptr(zone->pageset, cpu)->stat_threshold in set_pgdat_percpu_threshold()
528 void cpu_vm_stats_fold(int cpu) in cpu_vm_stats_fold() argument
537 p = per_cpu_ptr(zone->pageset, cpu); in cpu_vm_stats_fold()
1431 static bool need_update(int cpu) in need_update() argument
1436 struct per_cpu_pageset *p = per_cpu_ptr(zone->pageset, cpu); in need_update()
1487 int cpu; in vmstat_shepherd() local
1491 for_each_cpu(cpu, cpu_stat_off) { in vmstat_shepherd()
1492 struct delayed_work *dw = &per_cpu(vmstat_work, cpu); in vmstat_shepherd()
1494 if (need_update(cpu)) { in vmstat_shepherd()
1495 if (cpumask_test_and_clear_cpu(cpu, cpu_stat_off)) in vmstat_shepherd()
1496 queue_delayed_work_on(cpu, vmstat_wq, dw, 0); in vmstat_shepherd()
1514 int cpu; in start_shepherd_timer() local
1516 for_each_possible_cpu(cpu) in start_shepherd_timer()
1517 INIT_DELAYED_WORK(per_cpu_ptr(&vmstat_work, cpu), in start_shepherd_timer()
1531 int cpu; in vmstat_cpu_dead() local
1534 for_each_online_cpu(cpu) in vmstat_cpu_dead()
1535 if (cpu_to_node(cpu) == node) in vmstat_cpu_dead()
1551 long cpu = (long)hcpu; in vmstat_cpuup_callback() local
1557 node_set_state(cpu_to_node(cpu), N_CPU); in vmstat_cpuup_callback()
1558 cpumask_set_cpu(cpu, cpu_stat_off); in vmstat_cpuup_callback()
1562 cancel_delayed_work_sync(&per_cpu(vmstat_work, cpu)); in vmstat_cpuup_callback()
1563 cpumask_clear_cpu(cpu, cpu_stat_off); in vmstat_cpuup_callback()
1567 cpumask_set_cpu(cpu, cpu_stat_off); in vmstat_cpuup_callback()
1572 vmstat_cpu_dead(cpu_to_node(cpu)); in vmstat_cpuup_callback()