/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | idle.c | 26 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...] |
/third_party/node/test/parallel/ |
H A D | test-performance-eventlooputil.js | 18 assert.deepStrictEqual(elu, { idle: 0, active: 0, utilization: 0 }); 20 { idle: 0, active: 0, utilization: 0 }); 22 { idle: 0, active: 0, utilization: 0 }); 35 // Force idle time to accumulate before allowing test to continue. 36 if (elu1.idle <= 0) 46 assert.strictEqual(elu2.idle, 0); 47 assert.strictEqual(elu4.idle, 0); 62 const sum = elu1.idle + elu1.active; 64 assert.ok(sum >= elu1.idle && sum >= elu1.active, 65 `idle [all...] |
/third_party/node/lib/internal/perf/ |
H A D | event_loop_utilization.js | 11 return { idle: 0, active: 0, utilization: 0 }; 15 const idle = util1.idle - util2.idle; 17 return { idle, active, utilization: active / (idle + active) }; 20 const idle = nodeTiming.idleTime; 21 const active = now() - ls - idle; 24 return { idle, active, utilization: active / (idle [all...] |
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | idle.c | 26 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 D | sh_css_hrt.c | 39 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 D | sh_css_hrt.c | 39 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 D | platsmp.c | 42 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 D | platsmp.c | 42 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 D | stat.c | 28 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 D | uptime.c | 14 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 D | g84.c | 121 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 D | g84.c | 121 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 D | stat.c | 27 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 D | uptime.c | 15 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 D | stackprotector.h | 66 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 D | cpupower-completion.sh | 5 _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 D | cpupower-completion.sh | 5 _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 ;;
|
/foundation/arkui/ace_engine/test/unittest/core/accessibility/ |
H A D | accessibility_manager_ng_test_ng.cpp | 91 accessibilityManagerNg.hoverState_.idle = false; in HWTEST_F() 96 accessibilityManagerNg.hoverState_.idle = true; in HWTEST_F() 156 accessibilityManagerNg.hoverState_.idle = false; in HWTEST_F() 158 accessibilityManagerNg.hoverState_.idle = true; in HWTEST_F() 184 accessibilityManagerNg.hoverState_.idle = false; in HWTEST_F() 187 EXPECT_EQ(accessibilityManagerNg.hoverState_.idle, false); in HWTEST_F() 198 EXPECT_EQ(accessibilityManagerNg.hoverState_.idle, false); in HWTEST_F() 201 accessibilityManagerNg.hoverState_.idle = false; in HWTEST_F() 204 accessibilityManagerNg.hoverState_.idle = true; in HWTEST_F() 208 accessibilityManagerNg.hoverState_.idle in HWTEST_F() [all...] |
/third_party/libuv/src/unix/ |
H A D | tcp.c | 456 int idle; in uv__tcp_keepalive() local 460 (void) &idle; in uv__tcp_keepalive() 479 * - By default, the first keep-alive probe is sent out after a TCP connection is idle for two hours. in uv__tcp_keepalive() 496 idle = delay; in uv__tcp_keepalive() 498 if (idle < 10) in uv__tcp_keepalive() 499 idle = 10; in uv__tcp_keepalive() 501 if (idle > 10*24*60*60) in uv__tcp_keepalive() 502 idle = 10*24*60*60; in uv__tcp_keepalive() 507 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle))) in uv__tcp_keepalive() [all...] |
/third_party/node/lib/internal/ |
H A D | worker.js | 503 return { idle: 0, active: 0, utilization: 0 }; 510 return { idle: 0, active: 0, utilization: 0 }; 514 const idle = util1.idle - util2.idle; 516 return { idle, active, utilization: active / (idle + active) }; 519 const idle = this[kHandle].loopIdleTime(); 525 const active = now() - this[kLoopStartTime] - idle; 528 return { idle, activ [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | idle.h | 46 * 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 D | stackprotector.h | 93 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 D | idle.h | 46 * 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 D | amdgpu_ids.c | 186 * 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 D | via-macii.c | 78 #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...] |