summaryrefslogtreecommitdiff
path: root/common/mock/clock_mock.c
blob: 876e691b57a667e3c848324390cde93b3fbf7eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright 2023 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "mock/clock_mock.h"

#ifndef TEST_BUILD
#error "Mocks should only be in the test build."
#endif

static int fast_cpu_state;

void clock_enable_module(enum module_id module, int enable)
{
	if (module == MODULE_FAST_CPU) {
		fast_cpu_state = enable;
	}
}

int get_mock_fast_cpu_status(void)
{
	return fast_cpu_state;
}