函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:determine_cpu_tsc_frequencies

函数原型:static bool __init determine_cpu_tsc_frequencies(bool early)

返回类型:bool

参数:

类型参数名称
boolearly
1403  WARN_ON(TSC clocks / usec, not used here || tsc_khz)
1405  如果early
1406  TSC clocks / usec, not used here 等于calibrate_cpu()
1407  tsc_khz等于calibrate_tsc()
1408  否则
1410  WARN_ON(calibrate_cpu != ative_calibrate_cpu - calibrate the cpu)
1411  TSC clocks / usec, not used here 等于alibrate cpu using pit, hpet, and ptimer methods. They are available* later in boot after acpi is initialized.
1419  如果tsc_khz恒等于0则tsc_khz等于TSC clocks / usec, not used here
1421  否则如果__builtin_choose_expr(__builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), signedlonglong) || __builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), unsignedlonglong), ({signedlonglong__x = (TSC clocks / usec, not used here - tsc_khz);__x < 0 ? - __x : __x;}), __builtin_choose_expr(__builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), signedlong) || __builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), unsignedlong), ({signedlong__x = (TSC clocks / usec, not used here - tsc_khz);__x < 0 ? - __x : __x;}), __builtin_choose_expr(__builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), signedint) || __builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), unsignedint), ({signedint__x = (TSC clocks / usec, not used here - tsc_khz);__x < 0 ? - __x : __x;}), __builtin_choose_expr(__builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), signedshort) || __builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), unsignedshort), ({signedshort__x = (TSC clocks / usec, not used here - tsc_khz);__x < 0 ? - __x : __x;}), __builtin_choose_expr(__builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), signedchar) || __builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), unsignedchar), ({signedchar__x = (TSC clocks / usec, not used here - tsc_khz);__x < 0 ? - __x : __x;}), __builtin_choose_expr(__builtin_types_compatible_p(typeof(TSC clocks / usec, not used here - tsc_khz), char), (char)({signedchar__x = (TSC clocks / usec, not used here - tsc_khz);__x < 0 ? - __x : __x;}), ((void)0)))))))乘10大于tsc_khzTSC clocks / usec, not used here 等于tsc_khz
1424  如果tsc_khz恒等于0则返回:false
1427  打印信息("Detected %lu.%03lu MHz processor\n", (unsignedlong)TSC clocks / usec, not used here / KHZ, (unsignedlong)TSC clocks / usec, not used here % KHZ)
1431  如果TSC clocks / usec, not used here 不等于tsc_khz
1432  打印信息("Detected %lu.%03lu MHz TSC", (unsignedlong)tsc_khz / KHZ, (unsignedlong)tsc_khz % KHZ)
1436  返回:true
调用者
名称描述
tsc_early_init
tsc_init