]> git.baikalelectronics.ru Git - kernel.git/commit
cpu/SMT: create and export cpu_smt_possible()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 16 Sep 2019 16:22:56 +0000 (18:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 11:37:28 +0000 (13:37 +0200)
commitec0e65f23f4587ab88f016d4133022b8fbd671c4
treed1ee6d7671cd371c765778c9a73777a823dfe848
parent4bc4f2cac20662610bfc4f36a1d91a811833c68c
cpu/SMT: create and export cpu_smt_possible()

KVM needs to know if SMT is theoretically possible, this means it is
supported and not forcefully disabled ('nosmt=force'). Create and
export cpu_smt_possible() answering this question.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/cpu.h
kernel/cpu.c