Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tsc.c Create Date:2022-07-28 07:46:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tsc_init

Proto:void __init tsc_init(void)

Type:void

Parameter:Nothing

1475  If calibrate_cpu == ative_calibrate_cpu_early - can calibrate the cpu early in boot Then calibrate_cpu = ative_calibrate_cpu - calibrate the cpu
1478  If Not boot_cpu_has(Time Stamp Counter ) Then
1479  setup_clear_cpu_cap(TSC deadline timer )
1480  Return
1483  If Not tsc_khz Then
1485  If Not determine_cpu_tsc_frequencies(false) Then
1486  mark_tsc_unstable("could not calculate TSC khz")
1488  Return
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  If Not no_sched_irq_time Then enable_sched_clock_irqtime()
1498  lpj_fine = get_loops_per_jiffy()
1499  use_tsc_delay()
1501  check_system_tsc_reliable()
1503  If Make an educated guess if the TSC is trustworthy and synchronized* over all CPUs. Then
1504  mark_tsc_unstable("TSCs unsynchronized")
1505  Return
1508  If tsc_clocksource_reliable || no_tsc_watchdog Then flags &= ~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
Caller
NameDescribe
x86_late_time_init