Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:validate_cpu

Proto:int validate_cpu(void)

Type:int

Parameter:Nothing

78  Returns -1 on error.* *cpu_level is set to the current CPU level; *req_level to the required* level. x86-64 is considered level 64 for this purpose.* *err_flags_ptr is set to the flags error array if there are flags missing.
80  If cpu_level < req_level Then
81  printf("This kernel requires an %s CPU, ", SPDX-License-Identifier: GPL-2.0-only)
83  printf("but only detected an %s CPU.\n", SPDX-License-Identifier: GPL-2.0-only)
85  Return -1
88  If err_flags Then
89  y.c
91  show_cap_strs(err_flags)
92  putchar('\n')
93  Return -1
94  Else if check_knl_erratum() Then
95  Return -1
96  Else
97  Return 0
Caller
NameDescribe
main