函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tsc.c Create Date:2022-07-27 08:46:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:tsc_init

函数原型:void __init tsc_init(void)

返回类型:void

参数:

1475  如果calibrate_cpu恒等于ative_calibrate_cpu_early - can calibrate the cpu early in bootcalibrate_cpu等于ative_calibrate_cpu - calibrate the cpu
1478  如果非boot_cpu_has(Time Stamp Counter )则
1479  setup_clear_cpu_cap(TSC deadline timer )
1480  返回
1483  如果非tsc_khz
1485  如果非determine_cpu_tsc_frequencies(false)则
1486  mark_tsc_unstable("could not calculate TSC khz")
1488  返回
1490  tsc_enable_sched_clock()
1493  Secondary CPUs do not run through tsc_init(), so set up* all the scale factors for all CPUs, assuming the same* speed as the bootup CPU.
1495  如果非no_sched_irq_timeenable_sched_clock_irqtime()
1498  lpj_fine等于get_loops_per_jiffy()
1499  use_tsc_delay()
1501  check_system_tsc_reliable()
1503  如果Make an educated guess if the TSC is trustworthy and synchronized* over all CPUs.
1504  mark_tsc_unstable("TSCs unsynchronized")
1505  返回
1508  如果tsc_clocksource_reliableno_tsc_watchdogflags与等于CLOCK_SOURCE_MUST_VERIFY的反
1511  clocksource_register_khz( & .mask MUST be CLOCKSOURCE_MASK(64). See comment above read_tsc(), tsc_khz)
1512  If ART is present detect the numerator:denominator to convert to TSC
调用者
名称描述
x86_late_time_init