Home
last modified time | relevance | path

Searched refs:idle (Results 1 - 25 of 631) sorted by relevance

12345678910>>...26

/kernel/linux/linux-5.10/arch/s390/kernel/
H A Didle.c26 struct s390_idle_data *idle = this_cpu_ptr(&s390_idle); in enabled_wait() local
38 psw_idle(idle, psw_mask); in enabled_wait()
41 /* Account time spent with enabled wait psw loaded as idle time. */ in enabled_wait()
42 raw_write_seqcount_begin(&idle->seqcount); in enabled_wait()
43 idle_time = idle->clock_idle_exit - idle->clock_idle_enter; in enabled_wait()
44 idle->clock_idle_enter = idle->clock_idle_exit = 0ULL; in enabled_wait()
45 idle->idle_time += idle_time; in enabled_wait()
46 idle in enabled_wait()
55 struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id); show_idle_count() local
73 struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id); show_idle_time() local
98 struct s390_idle_data *idle = &per_cpu(s390_idle, cpu); arch_cpu_idle_time() local
[all...]
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Didle.c26 struct s390_idle_data *idle = this_cpu_ptr(&s390_idle); in account_idle_time_irq() local
34 this_cpu_add(mt_cycles[i], cycles_new[i] - idle->mt_cycles_enter[i]); in account_idle_time_irq()
37 idle_time = S390_lowcore.int_clock - idle->clock_idle_enter; in account_idle_time_irq()
39 S390_lowcore.steal_timer += idle->clock_idle_enter - S390_lowcore.last_update_clock; in account_idle_time_irq()
42 S390_lowcore.system_timer += S390_lowcore.last_update_timer - idle->timer_idle_enter; in account_idle_time_irq()
45 /* Account time spent with enabled wait psw loaded as idle time. */ in account_idle_time_irq()
46 WRITE_ONCE(idle->idle_time, READ_ONCE(idle->idle_time) + idle_time); in account_idle_time_irq()
47 WRITE_ONCE(idle->idle_count, READ_ONCE(idle in account_idle_time_irq()
53 struct s390_idle_data *idle = this_cpu_ptr(&s390_idle); arch_cpu_idle() local
68 struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id); show_idle_count() local
77 struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id); show_idle_time() local
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
H A Dsh_css_hrt.c39 bool not_idle = false, idle; in sh_css_hrt_system_is_idle() local
42 idle = sp_ctrl_getbit(SP0_ID, SP_SC_REG, SP_IDLE_BIT); in sh_css_hrt_system_is_idle()
43 not_idle |= !idle; in sh_css_hrt_system_is_idle()
44 if (!idle) in sh_css_hrt_system_is_idle()
45 IA_CSS_WARNING("SP not idle"); in sh_css_hrt_system_is_idle()
47 idle = isp_ctrl_getbit(ISP0_ID, ISP_SC_REG, ISP_IDLE_BIT); in sh_css_hrt_system_is_idle()
48 not_idle |= !idle; in sh_css_hrt_system_is_idle()
49 if (!idle) in sh_css_hrt_system_is_idle()
50 IA_CSS_WARNING("ISP not idle"); in sh_css_hrt_system_is_idle()
69 * Wait till SP is idle o in sh_css_hrt_sp_wait()
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/
H A Dsh_css_hrt.c39 bool not_idle = false, idle; in sh_css_hrt_system_is_idle() local
42 idle = sp_ctrl_getbit(SP0_ID, SP_SC_REG, SP_IDLE_BIT); in sh_css_hrt_system_is_idle()
43 not_idle |= !idle; in sh_css_hrt_system_is_idle()
44 if (!idle) in sh_css_hrt_system_is_idle()
45 IA_CSS_WARNING("SP not idle"); in sh_css_hrt_system_is_idle()
47 idle = isp_ctrl_getbit(ISP0_ID, ISP_SC_REG, ISP_IDLE_BIT); in sh_css_hrt_system_is_idle()
48 not_idle |= !idle; in sh_css_hrt_system_is_idle()
49 if (!idle) in sh_css_hrt_system_is_idle()
50 IA_CSS_WARNING("ISP not idle"); in sh_css_hrt_system_is_idle()
69 * Wait till SP is idle o in sh_css_hrt_sp_wait()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-tegra/
H A Dplatsmp.c42 static int tegra20_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra20_boot_secondary() argument
70 static int tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra30_boot_secondary() argument
129 static int tegra114_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra114_boot_secondary() argument
159 struct task_struct *idle) in tegra_boot_secondary()
162 return tegra20_boot_secondary(cpu, idle); in tegra_boot_secondary()
164 return tegra30_boot_secondary(cpu, idle); in tegra_boot_secondary()
166 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()
168 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()
158 tegra_boot_secondary(unsigned int cpu, struct task_struct *idle) tegra_boot_secondary() argument
/kernel/linux/linux-6.6/arch/arm/mach-tegra/
H A Dplatsmp.c42 static int tegra20_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra20_boot_secondary() argument
70 static int tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra30_boot_secondary() argument
129 static int tegra114_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra114_boot_secondary() argument
159 struct task_struct *idle) in tegra_boot_secondary()
162 return tegra20_boot_secondary(cpu, idle); in tegra_boot_secondary()
164 return tegra30_boot_secondary(cpu, idle); in tegra_boot_secondary()
166 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()
168 return tegra114_boot_secondary(cpu, idle); in tegra_boot_secondary()
158 tegra_boot_secondary(unsigned int cpu, struct task_struct *idle) tegra_boot_secondary() argument
/kernel/linux/linux-5.10/fs/proc/
H A Dstat.c28 u64 idle; in get_idle_time() local
30 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time()
32 idle += arch_idle_time(cpu); in get_idle_time()
33 return idle; in get_idle_time()
50 u64 idle, idle_usecs = -1ULL; in get_idle_time() local
56 /* !NO_HZ or cpu offline so we can rely on cpustat.idle */ in get_idle_time()
57 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time()
59 idle = idle_usecs * NSEC_PER_USEC; in get_idle_time()
61 return idle; in get_idle_time()
110 u64 user, nice, system, idle, iowai in show_stat() local
[all...]
H A Duptime.c14 struct timespec64 idle; in uptime_proc_show() local
30 idle.tv_sec = div_u64_rem(idle_nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
31 idle.tv_nsec = rem; in uptime_proc_show()
35 (unsigned long) idle.tv_sec, in uptime_proc_show()
36 (idle.tv_nsec / (NSEC_PER_SEC / 100))); in uptime_proc_show()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dg84.c121 bool idle, timeout = false; in g84_gr_tlb_flush() local
132 idle = true; in g84_gr_tlb_flush()
134 for (tmp = nvkm_rd32(device, 0x400380); tmp && idle; tmp >>= 3) { in g84_gr_tlb_flush()
136 idle = false; in g84_gr_tlb_flush()
139 for (tmp = nvkm_rd32(device, 0x400384); tmp && idle; tmp >>= 3) { in g84_gr_tlb_flush()
141 idle = false; in g84_gr_tlb_flush()
144 for (tmp = nvkm_rd32(device, 0x400388); tmp && idle; tmp >>= 3) { in g84_gr_tlb_flush()
146 idle = false; in g84_gr_tlb_flush()
148 } while (!idle && in g84_gr_tlb_flush()
152 nvkm_error(subdev, "PGRAPH TLB flush idle timeou in g84_gr_tlb_flush()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dg84.c121 bool idle, timeout = false; in g84_gr_tlb_flush() local
132 idle = true; in g84_gr_tlb_flush()
134 for (tmp = nvkm_rd32(device, 0x400380); tmp && idle; tmp >>= 3) { in g84_gr_tlb_flush()
136 idle = false; in g84_gr_tlb_flush()
139 for (tmp = nvkm_rd32(device, 0x400384); tmp && idle; tmp >>= 3) { in g84_gr_tlb_flush()
141 idle = false; in g84_gr_tlb_flush()
144 for (tmp = nvkm_rd32(device, 0x400388); tmp && idle; tmp >>= 3) { in g84_gr_tlb_flush()
146 idle = false; in g84_gr_tlb_flush()
148 } while (!idle && in g84_gr_tlb_flush()
152 nvkm_error(subdev, "PGRAPH TLB flush idle timeou in g84_gr_tlb_flush()
[all...]
/kernel/linux/linux-6.6/fs/proc/
H A Dstat.c27 u64 idle, idle_usecs = -1ULL; in get_idle_time() local
33 /* !NO_HZ or cpu offline so we can rely on cpustat.idle */ in get_idle_time()
34 idle = kcs->cpustat[CPUTIME_IDLE]; in get_idle_time()
36 idle = idle_usecs * NSEC_PER_USEC; in get_idle_time()
38 return idle; in get_idle_time()
85 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local
92 user = nice = system = idle = iowait = in show_stat()
108 idle += get_idle_time(&kcpustat, i); in show_stat()
130 seq_put_decimal_ull(p, " ", nsec_to_clock_t(idle)); in show_stat()
149 idle in show_stat()
[all...]
H A Duptime.c15 struct timespec64 idle; in uptime_proc_show() local
31 idle.tv_sec = div_u64_rem(idle_nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
32 idle.tv_nsec = rem; in uptime_proc_show()
36 (unsigned long) idle.tv_sec, in uptime_proc_show()
37 (idle.tv_nsec / (NSEC_PER_SEC / 100))); in uptime_proc_show()
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dstackprotector.h66 static inline void cpu_init_stack_canary(int cpu, struct task_struct *idle) in cpu_init_stack_canary() argument
69 per_cpu(fixed_percpu_data.stack_canary, cpu) = idle->stack_canary; in cpu_init_stack_canary()
71 per_cpu(__stack_chk_guard, cpu) = idle->stack_canary; in cpu_init_stack_canary()
79 static inline void cpu_init_stack_canary(int cpu, struct task_struct *idle) in cpu_init_stack_canary() argument
/kernel/linux/linux-5.10/tools/power/cpupower/
H A Dcpupower-completion.sh5 _cpupower_commands="frequency-info frequency-set idle-info idle-set set info monitor"
41 idle-info) COMPREPLY=($(compgen -W "$flags" -- "$cur")) ;;
51 idle-set) COMPREPLY=($(compgen -W "$flags" -- "$cur")) ;;
86 idle-info) _idle_info ;;
87 idle-set) _idle_set ;;
120 idle-info) _idle_info ;;
121 idle-set) _idle_set ;;
/kernel/linux/linux-6.6/tools/power/cpupower/
H A Dcpupower-completion.sh5 _cpupower_commands="frequency-info frequency-set idle-info idle-set set info monitor"
41 idle-info) COMPREPLY=($(compgen -W "$flags" -- "$cur")) ;;
51 idle-set) COMPREPLY=($(compgen -W "$flags" -- "$cur")) ;;
86 idle-info) _idle_info ;;
87 idle-set) _idle_set ;;
120 idle-info) _idle_info ;;
121 idle-set) _idle_set ;;
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Didle.h46 * Indicate to the HV that we are idle. Now would be in pseries_idle_prolog()
49 get_lppaca()->idle = 1; in pseries_idle_prolog()
56 get_lppaca()->idle = 0; in pseries_idle_epilog()
63 * If we are reading from an idle context, update the in read_this_idle_purr()
64 * idle-purr cycles corresponding to the last idle period. in read_this_idle_purr()
65 * Since the idle context is not yet over, take a fresh in read_this_idle_purr()
66 * snapshot of the idle-purr. in read_this_idle_purr()
68 if (unlikely(get_lppaca()->idle == 1)) { in read_this_idle_purr()
79 * If we are reading from an idle contex in read_this_idle_spurr()
[all...]
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dstackprotector.h93 static inline void cpu_init_stack_canary(int cpu, struct task_struct *idle) in cpu_init_stack_canary() argument
96 per_cpu(fixed_percpu_data.stack_canary, cpu) = idle->stack_canary; in cpu_init_stack_canary()
98 per_cpu(stack_canary.canary, cpu) = idle->stack_canary; in cpu_init_stack_canary()
131 static inline void cpu_init_stack_canary(int cpu, struct task_struct *idle) in cpu_init_stack_canary() argument
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Didle.h46 * Indicate to the HV that we are idle. Now would be in pseries_idle_prolog()
49 get_lppaca()->idle = 1; in pseries_idle_prolog()
56 get_lppaca()->idle = 0; in pseries_idle_epilog()
63 * If we are reading from an idle context, update the in read_this_idle_purr()
64 * idle-purr cycles corresponding to the last idle period. in read_this_idle_purr()
65 * Since the idle context is not yet over, take a fresh in read_this_idle_purr()
66 * snapshot of the idle-purr. in read_this_idle_purr()
68 if (unlikely(get_lppaca()->idle == 1)) { in read_this_idle_purr()
79 * If we are reading from an idle contex in read_this_idle_spurr()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ids.c186 * amdgpu_vm_grab_idle - grab idle VMID
191 * @idle: resulting idle VMID
193 * Try to find an idle VMID, if none is idle add a fence to wait to the sync
199 struct amdgpu_vmid **idle) in amdgpu_vmid_grab_idle()
215 /* Check if we have an idle VMID */ in amdgpu_vmid_grab_idle()
217 list_for_each_entry((*idle), &id_mgr->ids_lru, list) { in amdgpu_vmid_grab_idle()
222 fences[i] = amdgpu_sync_peek_fence(&(*idle)->active, r); in amdgpu_vmid_grab_idle()
228 /* If we can't find a idle VMI in amdgpu_vmid_grab_idle()
196 amdgpu_vmid_grab_idle(struct amdgpu_vm *vm, struct amdgpu_ring *ring, struct amdgpu_sync *sync, struct amdgpu_vmid **idle) amdgpu_vmid_grab_idle() argument
416 struct amdgpu_vmid *idle = NULL; amdgpu_vmid_grab() local
474 struct amdgpu_vmid *idle; amdgpu_vmid_alloc_reserved() local
[all...]
/kernel/linux/linux-5.10/drivers/macintosh/
H A Dvia-macii.c78 #define ST_IDLE 0x30 /* ADB state: idle, nothing to send */
110 idle, enumerator
159 macii_state = idle; in macii_init()
173 /* Set up state: idle */ in macii_init_via()
218 * as long as it is idle. in macii_queue_poll()
277 if (macii_state == idle) in macii_write()
298 if (current_req && macii_state == idle) in macii_autopoll()
393 case idle: in macii_interrupt()
405 /* /CTLR_IRQ asserted in idle state means we must in macii_interrupt()
482 macii_state = idle; in macii_interrupt()
[all...]
/kernel/linux/linux-6.6/drivers/macintosh/
H A Dvia-macii.c76 #define ST_IDLE 0x30 /* ADB state: idle, nothing to send */
108 idle, enumerator
157 macii_state = idle; in macii_init()
171 /* Set up state: idle */ in macii_init_via()
216 * as long as it is idle. in macii_queue_poll()
275 if (macii_state == idle) in macii_write()
296 if (current_req && macii_state == idle) in macii_autopoll()
391 case idle: in macii_interrupt()
403 /* /CTLR_IRQ asserted in idle state means we must in macii_interrupt()
480 macii_state = idle; in macii_interrupt()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
H A Dpm33xx-core.c81 static int amx3_common_init(int (*idle)(u32 wfi_flags)) in amx3_common_init()
101 idle_fn = idle; in amx3_common_init()
106 static int am33xx_suspend_init(int (*idle)(u32 wfi_flags)) in am33xx_suspend_init()
117 ret = amx3_common_init(idle); in am33xx_suspend_init()
122 static int am43xx_suspend_init(int (*idle)(u32 wfi_flags)) in am43xx_suspend_init()
132 ret = amx3_common_init(idle); in am43xx_suspend_init()
392 state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); in amx3_idle_init()
407 if (of_property_read_bool(state_node, "ti,idle-wkup-m3")) in amx3_idle_init()
/kernel/linux/linux-6.6/arch/arm/mach-omap2/
H A Dpm33xx-core.c80 static int amx3_common_init(int (*idle)(u32 wfi_flags)) in amx3_common_init()
100 idle_fn = idle; in amx3_common_init()
105 static int am33xx_suspend_init(int (*idle)(u32 wfi_flags)) in am33xx_suspend_init()
114 return amx3_common_init(idle); in am33xx_suspend_init()
117 static int am43xx_suspend_init(int (*idle)(u32 wfi_flags)) in am43xx_suspend_init()
127 ret = amx3_common_init(idle); in am43xx_suspend_init()
387 state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); in amx3_idle_init()
402 if (of_property_read_bool(state_node, "ti,idle-wkup-m3")) in amx3_idle_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
H A Detnaviv_gpu.c450 /* GC600/300 idle register reports zero bits where modules aren't present */ in etnaviv_hw_identify()
492 u32 control, idle; in etnaviv_hw_reset() local
529 /* read idle register. */ in etnaviv_hw_reset()
530 idle = gpu_read(gpu, VIVS_HI_IDLE_STATE); in etnaviv_hw_reset()
532 /* try resetting again if FE is not idle */ in etnaviv_hw_reset()
533 if ((idle & VIVS_HI_IDLE_STATE_FE) == 0) { in etnaviv_hw_reset()
534 dev_dbg(gpu->dev, "FE is not idle\n"); in etnaviv_hw_reset()
541 /* is the GPU idle? */ in etnaviv_hw_reset()
544 dev_dbg(gpu->dev, "GPU is not idle\n"); in etnaviv_hw_reset()
557 idle in etnaviv_hw_reset()
879 u32 dma_lo, dma_hi, axi, idle; etnaviv_gpu_debugfs() local
1558 u32 idle = gpu_read(gpu, VIVS_HI_IDLE_STATE); etnaviv_gpu_wait_idle() local
1855 u32 idle, mask; etnaviv_gpu_rpm_suspend() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/
H A Detnaviv_gpu.c458 /* GC600/300 idle register reports zero bits where modules aren't present */ in etnaviv_hw_identify()
499 * until new work is picked up by the FE when it polls in the idle loop. in etnaviv_gpu_update_clock()
508 u32 control, idle; in etnaviv_hw_reset() local
545 /* read idle register. */ in etnaviv_hw_reset()
546 idle = gpu_read(gpu, VIVS_HI_IDLE_STATE); in etnaviv_hw_reset()
548 /* try resetting again if FE is not idle */ in etnaviv_hw_reset()
549 if ((idle & VIVS_HI_IDLE_STATE_FE) == 0) { in etnaviv_hw_reset()
550 dev_dbg(gpu->dev, "FE is not idle\n"); in etnaviv_hw_reset()
557 /* is the GPU idle? */ in etnaviv_hw_reset()
560 dev_dbg(gpu->dev, "GPU is not idle\ in etnaviv_hw_reset()
917 u32 dma_lo, dma_hi, axi, idle; etnaviv_gpu_debugfs() local
1636 u32 idle = gpu_read(gpu, VIVS_HI_IDLE_STATE); etnaviv_gpu_wait_idle() local
1917 u32 idle, mask; etnaviv_gpu_rpm_suspend() local
[all...]

Completed in 11 milliseconds

12345678910>>...26