/* ONLY when the feature before(or after) the find feature also has dependence with the find feature. In this case, driver need to base on dependce relationship to decide how to insert current feature and adjust the feature dependence. */
BOOLEAN AdjustFeaturesDependence(IN OUT CPU_FEATURES_ENTRY *PreviousFeature, IN OUT CPU_FEATURES_ENTRY *CurrentFeature, IN CPU_FEATURES_ENTRY *FindFeature, IN BOOLEAN Before)
/* ONLY when the feature before(or after) the find feature also has dependence with the find feature. In this case, driver need to base on dependce relationship to decide how to insert current feature and adjust the feature dependence. */
BOOLEAN AdjustFeaturesDependence(IN OUT CPU_FEATURES_ENTRY *PreviousFeature, IN OUT CPU_FEATURES_ENTRY *CurrentFeature, IN CPU_FEATURES_ENTRY *FindFeature, IN BOOLEAN Before)
{
  CPU_FEATURE_DEPENDENCE_TYPE  PreDependType;
  CPU_FEATURE_DEPENDENCE_TYPE  CurrentDependType;
  PreDependType     = DetectFeatureScope (PreviousFeature, Before, FindFeature->FeatureMask);
  CurrentDependType = DetectFeatureScope (CurrentFeature, Before, FindFeature->FeatureMask);
  if (PreDependType == NoneDepType) {
    return FALSE;
  }
  if (PreDependType >= CurrentDependType) {
    return TRUE;
  } else {
    return FALSE;
  }
}