initialize hostFeatureSet from init function
This commit is contained in:
parent
de9090dde9
commit
c0dfa0e845
|
@ -43,7 +43,7 @@ func HostFeatureSet() *FeatureSet {
|
|||
return hostFeatureSet
|
||||
}
|
||||
|
||||
var hostFeatureSet = getHostFeatureSet()
|
||||
var hostFeatureSet *FeatureSet
|
||||
|
||||
// ErrIncompatible is returned by FeatureSet.HostCompatible if fs is not a
|
||||
// subset of the host feature set.
|
||||
|
|
|
@ -1109,4 +1109,5 @@ func initFeaturesFromString() {
|
|||
func init() {
|
||||
initCPUFreq()
|
||||
initFeaturesFromString()
|
||||
hostFeatureSet = getHostFeatureSet()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue