Home
last modified time | relevance | path

Searched refs:static_branch_likely (Results 1 – 25 of 88) sorted by relevance

1234

/linux-6.6.21/include/linux/
Dpage_table_check.h30 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_alloc()
38 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_free()
46 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_pte_clear()
54 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_pmd_clear()
62 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_pud_clear()
71 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_ptes_set()
80 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_pmd_set()
89 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_pud_set()
99 if (static_branch_likely(&page_table_check_disabled)) in page_table_check_pte_clear_range()
Dkasan-enabled.h13 return static_branch_likely(&kasan_flag_enabled); in kasan_enabled()
Djump_label.h482 #define static_branch_likely(x) \ macro
508 #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key)) macro
514 (IS_ENABLED(config) ? static_branch_likely(x) \
Dscs.h62 return static_branch_likely(&dynamic_scs_enabled); in scs_is_dynamic()
/linux-6.6.21/lib/
Dtest_static_keys.c92 test_key_func(true_key, static_branch_likely) in test_key_func()
94 test_key_func(false_key, static_branch_likely) in test_key_func()
100 test_key_func(base_true_key, static_branch_likely) in test_key_func()
102 test_key_func(base_inv_true_key, static_branch_likely) in test_key_func()
104 test_key_func(base_false_key, static_branch_likely) in test_key_func()
106 test_key_func(base_inv_false_key, static_branch_likely) in test_key_func()
/linux-6.6.21/kernel/sched/
Dclock.c108 return static_branch_likely(&__sched_clock_stable); in sched_clock_stable()
300 if (static_branch_likely(&__sched_clock_stable)) in local_clock_noinstr()
303 if (!static_branch_likely(&sched_clock_running)) in local_clock_noinstr()
396 if (!static_branch_likely(&sched_clock_running)) in sched_clock_cpu()
419 if (!static_branch_likely(&sched_clock_running)) in sched_clock_tick()
486 if (!static_branch_likely(&sched_clock_running)) in sched_clock_cpu()
Dstats.h125 if (static_branch_likely(&psi_disabled)) in psi_enqueue()
144 if (static_branch_likely(&psi_disabled)) in psi_dequeue()
161 if (static_branch_likely(&psi_disabled)) in psi_ttwu_dequeue()
182 if (static_branch_likely(&psi_disabled)) in psi_sched_switch()
Dpsi.c887 if (static_branch_likely(&psi_cgroups_enabled)) in task_psi_group()
1049 if (static_branch_likely(&psi_disabled)) in psi_memstall_enter()
1080 if (static_branch_likely(&psi_disabled)) in psi_memstall_leave()
1102 if (!static_branch_likely(&psi_cgroups_enabled)) in psi_cgroup_alloc()
1121 if (!static_branch_likely(&psi_cgroups_enabled)) in psi_cgroup_free()
1149 if (!static_branch_likely(&psi_cgroups_enabled)) { in cgroup_move_task()
1239 if (static_branch_likely(&psi_disabled)) in psi_show()
1288 if (static_branch_likely(&psi_disabled)) in psi_trigger_create()
1471 if (static_branch_likely(&psi_disabled)) in psi_trigger_poll()
1528 if (static_branch_likely(&psi_disabled)) in psi_write()
/linux-6.6.21/arch/x86/include/asm/
Dresctrl.h63 if (static_branch_likely(&rdt_alloc_enable_key)) { in __resctrl_sched_in()
69 if (static_branch_likely(&rdt_mon_enable_key)) { in __resctrl_sched_in()
93 if (static_branch_likely(&rdt_enable_key)) in resctrl_sched_in()
/linux-6.6.21/arch/arm/crypto/
Dpoly1305-glue.c79 if (static_branch_likely(&have_neon) && likely(do_neon)) in arm_poly1305_blocks()
131 if (static_branch_likely(&have_neon) && do_neon) in arm_poly1305_update_neon()
134 if (static_branch_likely(&have_neon) && do_neon) in arm_poly1305_update_neon()
163 if (static_branch_likely(&have_neon) && do_neon) { in poly1305_update_arch()
259 if (!static_branch_likely(&have_neon)) { in arm_poly1305_mod_exit()
/linux-6.6.21/arch/arm64/include/asm/
Dvirt.h93 static_branch_likely(&kvm_protected_mode_initialized)) in is_hyp_mode_available()
108 static_branch_likely(&kvm_protected_mode_initialized)) in is_hyp_mode_mismatched()
/linux-6.6.21/arch/arm64/crypto/
Dpoly1305-glue.c75 if (static_branch_likely(&have_neon) && likely(do_neon)) in neon_poly1305_blocks()
117 if (static_branch_likely(&have_neon) && do_neon) in neon_poly1305_update()
120 if (static_branch_likely(&have_neon) && do_neon) in neon_poly1305_update()
145 if (static_branch_likely(&have_neon) && crypto_simd_usable()) { in poly1305_update_arch()
Dchacha-neon-glue.c67 if (!static_branch_likely(&have_neon) || !crypto_simd_usable()) { in hchacha_block_arch()
86 if (!static_branch_likely(&have_neon) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch()
121 if (!static_branch_likely(&have_neon) || in chacha_neon_stream_xor()
/linux-6.6.21/arch/x86/crypto/
Dblake2s-glue.c34 if (!static_branch_likely(&blake2s_use_ssse3) || !may_use_simd()) { in blake2s_compress()
45 static_branch_likely(&blake2s_use_avx512)) in blake2s_compress()
Dchacha_glue.c52 static_branch_likely(&chacha_use_avx512vl)) { in chacha_dosimd()
81 if (static_branch_likely(&chacha_use_avx2)) { in chacha_dosimd()
126 if (!static_branch_likely(&chacha_use_simd) || !crypto_simd_usable()) { in hchacha_block_arch()
145 if (!static_branch_likely(&chacha_use_simd) || !crypto_simd_usable() || in chacha_crypt_arch()
180 if (!static_branch_likely(&chacha_use_simd) || in chacha_simd_stream_xor()
Dpoly1305_glue.c98 if (!static_branch_likely(&poly1305_use_avx) || in poly1305_simd_blocks()
110 if (IS_ENABLED(CONFIG_AS_AVX512) && static_branch_likely(&poly1305_use_avx512)) in poly1305_simd_blocks()
112 else if (static_branch_likely(&poly1305_use_avx2)) in poly1305_simd_blocks()
126 if (!static_branch_likely(&poly1305_use_avx)) in poly1305_simd_emit()
/linux-6.6.21/include/linux/sched/
Dsmt.h12 return static_branch_likely(&sched_smt_present); in sched_smt_active()
/linux-6.6.21/arch/x86/kernel/apic/
Dipi.c56 if (static_branch_likely(&apic_use_ipi_shorthand)) in apic_send_IPI_allbutself()
83 if (static_branch_likely(&apic_use_ipi_shorthand)) { in native_send_call_func_ipi()
/linux-6.6.21/arch/x86/kernel/
Dprocess.h26 if (!static_branch_likely(&switch_to_cond_stibp)) { in switch_to_extra()
/linux-6.6.21/arch/s390/include/asm/
Darchrandom.h29 if (static_branch_likely(&s390_arch_random_available) && in arch_get_random_seed_longs()
/linux-6.6.21/arch/powerpc/include/asm/
Dcpu_has_feature.h46 return static_branch_likely(&cpu_feature_keys[i]); in cpu_has_feature()
Dkasan.h61 if (static_branch_likely(&powerpc_kasan_enabled_key)) in kasan_arch_is_ready()
/linux-6.6.21/drivers/irqchip/
Dirq-apple-aic.c536 if (static_branch_likely(&use_fast_ipi)) { in aic_handle_fiq()
771 if (static_branch_likely(&use_fast_ipi)) { in aic_handle_ipi()
784 if (!static_branch_likely(&use_fast_ipi)) in aic_handle_ipi()
790 if (static_branch_likely(&use_fast_ipi)) in aic_ipi_send_single()
855 if (static_branch_likely(&use_fast_ipi)) { in aic_init_cpu()
1041 if (static_branch_likely(&use_fast_ipi)) in aic_of_ic_init()
/linux-6.6.21/arch/parisc/kernel/
Dcache.c70 if (static_branch_likely(&parisc_has_icache)) in cache_flush_local_cpu()
72 if (static_branch_likely(&parisc_has_dcache)) in cache_flush_local_cpu()
83 if (static_branch_likely(&parisc_has_cache)) in flush_cache_all()
89 if (static_branch_likely(&parisc_has_dcache)) in flush_data_cache()
318 if (!static_branch_likely(&parisc_has_cache)) in __flush_cache_page()
/linux-6.6.21/arch/arm64/kvm/hyp/include/nvhe/
Dspinlock.h118 if (static_branch_likely(&kvm_protected_mode_initialized)) in hyp_assert_lock_held()

1234