Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/init/
H A Dcalibrate.c23 __setup("lpj=", lpj_setup);
57 * event can happen between these two events introducing errors in lpj. in calibrate_delay_direct()
166 "interrupts. Consider using \"lpj=\" boot option.\n"); in calibrate_delay_direct()
190 unsigned long lpj, lpj_base, ticks, loopadd, loopadd_base, chop_limit; in calibrate_delay_converge() local
193 lpj = (1<<12); in calibrate_delay_converge()
206 __delay(lpj * band); in calibrate_delay_converge()
214 loopadd_base = lpj * band; in calibrate_delay_converge()
215 lpj_base = lpj * trials; in calibrate_delay_converge()
218 lpj = lpj_base; in calibrate_delay_converge()
222 * Do a binary approximation to get lpj se in calibrate_delay_converge()
277 unsigned long lpj; calibrate_delay() local
[all...]
/kernel/linux/linux-6.6/init/
H A Dcalibrate.c23 __setup("lpj=", lpj_setup);
57 * event can happen between these two events introducing errors in lpj. in calibrate_delay_direct()
166 "interrupts. Consider using \"lpj=\" boot option.\n"); in calibrate_delay_direct()
190 unsigned long lpj, lpj_base, ticks, loopadd, loopadd_base, chop_limit; in calibrate_delay_converge() local
193 lpj = (1<<12); in calibrate_delay_converge()
206 __delay(lpj * band); in calibrate_delay_converge()
214 loopadd_base = lpj * band; in calibrate_delay_converge()
215 lpj_base = lpj * trials; in calibrate_delay_converge()
218 lpj = lpj_base; in calibrate_delay_converge()
222 * Do a binary approximation to get lpj se in calibrate_delay_converge()
277 unsigned long lpj; calibrate_delay() local
[all...]
/kernel/linux/linux-5.10/arch/mips/lib/
H A Ddelay.c55 unsigned int lpj = raw_current_cpu_data.udelay_val; in __udelay() local
57 __delay((us * 0x000010c7ull * HZ * lpj) >> 32); in __udelay()
63 unsigned int lpj = raw_current_cpu_data.udelay_val; in __ndelay() local
65 __delay((ns * 0x00000005ull * HZ * lpj) >> 32); in __ndelay()
/kernel/linux/linux-6.6/arch/mips/lib/
H A Ddelay.c54 unsigned int lpj = raw_current_cpu_data.udelay_val; in __udelay() local
56 __delay((us * 0x000010c7ull * HZ * lpj) >> 32); in __udelay()
62 unsigned int lpj = raw_current_cpu_data.udelay_val; in __ndelay() local
64 __delay((ns * 0x00000005ull * HZ * lpj) >> 32); in __ndelay()
/kernel/linux/linux-5.10/arch/sparc/include/asm/
H A Ddelay_32.h24 void __udelay(unsigned long usecs, unsigned long lpj);
25 void __ndelay(unsigned long nsecs, unsigned long lpj);
/kernel/linux/linux-5.10/arch/nds32/include/asm/
H A Ddelay.h20 static inline void __udelay(unsigned long usecs, unsigned long lpj) in __udelay() argument
24 usecs = (unsigned long)(((unsigned long long)usecs * lpj) >> 32); in __udelay()
/kernel/linux/linux-6.6/arch/sparc/include/asm/
H A Ddelay_32.h24 void __udelay(unsigned long usecs, unsigned long lpj);
25 void __ndelay(unsigned long nsecs, unsigned long lpj);
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dtime.c41 unsigned long lpj; in cpufreq_callback() local
45 * Skip lpj numbers adjustment if the CPU-freq transition is safe for in cpufreq_callback()
64 * Adjust global lpj variable and per-CPU udelay_val number in in cpufreq_callback()
74 lpj = cpufreq_scale(per_cpu(pcp_lpj_ref, cpu), in cpufreq_callback()
77 cpu_data[cpu].udelay_val = (unsigned int)lpj; in cpufreq_callback()
/kernel/linux/linux-6.6/arch/mips/kernel/
H A Dtime.c41 unsigned long lpj; in cpufreq_callback() local
45 * Skip lpj numbers adjustment if the CPU-freq transition is safe for in cpufreq_callback()
64 * Adjust global lpj variable and per-CPU udelay_val number in in cpufreq_callback()
74 lpj = cpufreq_scale(per_cpu(pcp_lpj_ref, cpu), in cpufreq_callback()
77 cpu_data[cpu].udelay_val = (unsigned int)lpj; in cpufreq_callback()
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dkvmclock.c111 * will calibrate under heavy load - thus, getting a lower lpj -
116 * lpj here
127 u64 lpj; in kvm_get_preset_lpj() local
131 lpj = ((u64)khz * 1000); in kvm_get_preset_lpj()
132 do_div(lpj, HZ); in kvm_get_preset_lpj()
133 preset_lpj = lpj; in kvm_get_preset_lpj()
H A Dtsc.c1481 u64 lpj = (u64)tsc_khz * KHZ; in get_loops_per_jiffy() local
1483 do_div(lpj, HZ); in get_loops_per_jiffy()
1484 return lpj; in get_loops_per_jiffy()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dkvmclock.c110 * will calibrate under heavy load - thus, getting a lower lpj -
115 * lpj here
126 u64 lpj; in kvm_get_preset_lpj() local
130 lpj = ((u64)khz * 1000); in kvm_get_preset_lpj()
131 do_div(lpj, HZ); in kvm_get_preset_lpj()
132 preset_lpj = lpj; in kvm_get_preset_lpj()
H A Dtsc.c1545 u64 lpj = (u64)tsc_khz * KHZ; in get_loops_per_jiffy() local
1547 do_div(lpj, HZ); in get_loops_per_jiffy()
1548 return lpj; in get_loops_per_jiffy()
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dtime.c112 unsigned long lpj = (unsigned long)const_clock_freq; in get_loops_per_jiffy() local
114 do_div(lpj, HZ); in get_loops_per_jiffy()
116 return lpj; in get_loops_per_jiffy()
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Dtime.c106 unsigned long lpj = (unsigned long)const_clock_freq; in get_loops_per_jiffy() local
108 do_div(lpj, HZ); in get_loops_per_jiffy()
110 return lpj; in get_loops_per_jiffy()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
H A Dvmware.c390 uint64_t lpj, tsc_khz; in vmware_platform_setup() local
395 lpj = tsc_khz = eax | (((uint64_t)ebx) << 32); in vmware_platform_setup()
403 do_div(lpj, HZ); in vmware_platform_setup()
404 preset_lpj = lpj; in vmware_platform_setup()
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/
H A Dvmware.c393 uint64_t lpj, tsc_khz; in vmware_platform_setup() local
398 lpj = tsc_khz = eax | (((uint64_t)ebx) << 32); in vmware_platform_setup()
406 do_div(lpj, HZ); in vmware_platform_setup()
407 preset_lpj = lpj; in vmware_platform_setup()
/kernel/linux/linux-5.10/arch/x86/lib/
H A Ddelay.c209 unsigned long lpj = this_cpu_read(cpu_info.loops_per_jiffy) ? : loops_per_jiffy; in __const_udelay() local
215 :"1" (xloops), "0" (lpj * (HZ / 4))); in __const_udelay()
/kernel/linux/linux-6.6/arch/x86/lib/
H A Ddelay.c209 unsigned long lpj = this_cpu_read(cpu_info.loops_per_jiffy) ? : loops_per_jiffy; in __const_udelay() local
215 :"1" (xloops), "0" (lpj * (HZ / 4))); in __const_udelay()
/kernel/linux/linux-5.10/arch/arm/kernel/
H A Dsmp.c808 unsigned int lpj; in cpufreq_callback() local
832 lpj = cpufreq_scale(per_cpu(l_p_j_ref, first), in cpufreq_callback()
835 per_cpu(cpu_data, cpu).loops_per_jiffy = lpj; in cpufreq_callback()
/kernel/linux/linux-6.6/arch/arm/kernel/
H A Dsmp.c799 unsigned int lpj; in cpufreq_callback() local
823 lpj = cpufreq_scale(per_cpu(l_p_j_ref, first), in cpufreq_callback()
826 per_cpu(cpu_data, cpu).loops_per_jiffy = lpj; in cpufreq_callback()
/kernel/linux/linux-5.10/arch/ia64/kernel/
H A Dsetup.c656 # define lpj c->loops_per_jiffy in show_cpuinfo() macro
659 # define lpj loops_per_jiffy in show_cpuinfo()
721 lpj*HZ/500000, (lpj*HZ/5000) % 100); in show_cpuinfo()
/kernel/linux/linux-6.6/arch/ia64/kernel/
H A Dsetup.c652 # define lpj c->loops_per_jiffy in show_cpuinfo() macro
655 # define lpj loops_per_jiffy in show_cpuinfo()
717 lpj*HZ/500000, (lpj*HZ/5000) % 100); in show_cpuinfo()
/kernel/linux/linux-5.10/kernel/printk/
H A Dprintk.c1240 unsigned long lpj; in boot_delay_setup() local
1242 lpj = preset_lpj ? preset_lpj : 1000000; /* some guess */ in boot_delay_setup()
1243 loops_per_msec = (unsigned long long)lpj / 1000 * HZ; in boot_delay_setup()
1249 pr_debug("boot_delay: %u, preset_lpj: %ld, lpj: %lu, " in boot_delay_setup()
1251 boot_delay, preset_lpj, lpj, HZ, loops_per_msec); in boot_delay_setup()
/kernel/linux/linux-6.6/kernel/printk/
H A Dprintk.c1267 unsigned long lpj; in boot_delay_setup() local
1269 lpj = preset_lpj ? preset_lpj : 1000000; /* some guess */ in boot_delay_setup()
1270 loops_per_msec = (unsigned long long)lpj / 1000 * HZ; in boot_delay_setup()
1276 pr_debug("boot_delay: %u, preset_lpj: %ld, lpj: %lu, " in boot_delay_setup()
1278 boot_delay, preset_lpj, lpj, HZ, loops_per_msec); in boot_delay_setup()

Completed in 26 milliseconds