def enable_sstbf(enable): """ Enables or disables SST-BF """ if enable: arg = '-s' else: arg = '-m' result = _run_sstbf(arg) if result is None: return -1 log.sys("Intel SST-BF {}configured.".format("" if enable else "un")) return 0
def configure_sstbf(configure): """ Configures or unconfigures SST-BF """ sys = power_common.get_pwr_sys() if not sys: return -1 if configure: new_core_cfg = PWR_CFG_SST_BF else: new_core_cfg = PWR_CFG_BASE sys.commit(new_core_cfg) log.sys("Intel SST-BF {}configured.".format("" if configure else "un")) return 0
def configure_sstbf(configure): """ Configures or unconfigures SST-BF """ try: cores = pwr.get_cores() except IOError: return -1 if not cores: return -1 if configure: new_core_cfg = PWR_CFG_SST_BF_BASE else: new_core_cfg = PWR_CFG_BASE for core in cores: core.commit(new_core_cfg) log.sys("Intel SST-BF {}configured.".format("" if configure else "un")) return 0