mirror of
https://github.com/erpalma/throttled.git
synced 2026-03-18 18:54:37 +01:00
Set undervolt & icc max on reload
This commit is contained in:
parent
46a062e14d
commit
8d598f524c
|
|
@ -548,6 +548,15 @@ def get_config_write_time():
|
|||
return None
|
||||
|
||||
|
||||
def reload_config():
|
||||
config = load_config()
|
||||
regs = calc_reg_values(get_cpu_platform_info(), config)
|
||||
undervolt(config)
|
||||
set_icc_max(config)
|
||||
log('[I] Reloading changes.')
|
||||
return config, regs
|
||||
|
||||
|
||||
def power_thread(config, regs, exit_event):
|
||||
try:
|
||||
mchbar_mmio = MMIO(0xFED159A0, 8)
|
||||
|
|
@ -570,8 +579,7 @@ def power_thread(config, regs, exit_event):
|
|||
config_write_time = get_config_write_time()
|
||||
if config_write_time and last_config_write_time != config_write_time:
|
||||
last_config_write_time = config_write_time
|
||||
config = load_config()
|
||||
log('[I] Reloading changes.')
|
||||
config, regs = reload_config()
|
||||
|
||||
# switch back to sysfs polling
|
||||
if power['method'] == 'polling':
|
||||
|
|
|
|||
Loading…
Reference in a new issue