Function report |
Source Code:init\calibrate.c |
Create Date:2022-07-28 13:55:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:calibrate_delay
Proto:void calibrate_delay(void)
Type:void
Parameter:Nothing
279 | this_cpu = smp_processor_id() |
281 | If per_cpu(cpu_loops_per_jiffy, this_cpu) Then |
282 | lpj = per_cpu(cpu_loops_per_jiffy, this_cpu) |
286 | Else if preset_lpj Then |
287 | lpj = preset_lpj |
293 | pr_info("Calibrating delay loop (skipped), value calculated using timer frequency.. ") |
301 | Else |
304 | lpj = calibrate_delay_converge() |
306 | per_cpu(cpu_loops_per_jiffy, this_cpu) = lpj |
307 | If Not printed Then Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("%lu.%02lu BogoMIPS (lpj=%lu)\n", lpj / (500000 / HZ), (lpj / (5000 / HZ)) % 100, lpj) |
312 | This should be approx 2 Bo*oMips to start (note initial shift), and will* still work even if initially too large, it will just take slightly longer = lpj |
313 | printed = true |
Name | Describe |
---|---|
smp_callin | Report back to the Boot Processor during boot time or to the caller processor* during CPU online. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |