diff options
Diffstat (limited to 'common/host_event_commands.c')
-rw-r--r-- | common/host_event_commands.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/common/host_event_commands.c b/common/host_event_commands.c index 4ee11a9de2..1d085b71cc 100644 --- a/common/host_event_commands.c +++ b/common/host_event_commands.c @@ -88,14 +88,12 @@ static void host_clear_events_b(uint32_t mask) * * @param throttle Enable (!=0) or disable(0) throttling */ -void host_throttle_cpu(int throttle) +test_mockable void host_throttle_cpu(int throttle) { if (throttle) - host_set_events(EC_HOST_EVENT_MASK( - EC_HOST_EVENT_THROTTLE_START)); + host_set_single_event(EC_HOST_EVENT_THROTTLE_START); else - host_set_events(EC_HOST_EVENT_MASK( - EC_HOST_EVENT_THROTTLE_STOP)); + host_set_single_event(EC_HOST_EVENT_THROTTLE_STOP); } /*****************************************************************************/ |