diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-08-05 13:43:35 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-08-06 22:33:02 +0000 |
commit | 0e0273a015f57e244015c80f0fa37192f1e569f3 (patch) | |
tree | 373e54a66e7623bf602a58466764b4b3418c12dd /src/cpu/intel/common/common.h | |
parent | 3d813cbede650a89a519d5896652328e4ecf88c6 (diff) | |
download | coreboot-0e0273a015f57e244015c80f0fa37192f1e569f3.tar.xz |
cpu/intel/common: Add `intel_ht_supported` function
Change-Id: I90c0378c4042dec39c8c86c1d2339a5cbcfe78e3
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44210
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/cpu/intel/common/common.h')
-rw-r--r-- | src/cpu/intel/common/common.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cpu/intel/common/common.h b/src/cpu/intel/common/common.h index 57a5fe602c..df14668095 100644 --- a/src/cpu/intel/common/common.h +++ b/src/cpu/intel/common/common.h @@ -3,7 +3,7 @@ #ifndef _CPU_INTEL_COMMON_H #define _CPU_INTEL_COMMON_H -#include <stdint.h> +#include <types.h> void set_vmx_and_lock(void); void set_feature_ctrl_vmx(void); @@ -18,6 +18,11 @@ struct cppc_config; void cpu_init_cppc_config(struct cppc_config *config, u32 version); /* + * Returns true if CPU supports Hyper-Threading. + */ +bool intel_ht_supported(void); + +/* * Returns true if it's not thread 0 on a hyperthreading enabled core. */ bool intel_ht_sibling(void); |