/* Copyright 2022 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "task_id.h" #include #include /* * The fakes below are needed to satisfy the final link, but are never * actually called at runtime. Exclude from the coverage report to avoid * false positives on the low-coverage check. */ /* LCOV_EXCL_START */ FAKE_VALUE_FUNC(task_id_t, task_get_current); FAKE_VALUE_FUNC(atomic_t *, task_get_event_bitmap, task_id_t); FAKE_VOID_FUNC(task_set_event, task_id_t, uint32_t); FAKE_VALUE_FUNC(int, task_start_called); FAKE_VALUE_FUNC(uint32_t, task_wait_event, int); FAKE_VALUE_FUNC(uint32_t, task_wait_event_mask, uint32_t, int); /* * If cros-ec tasks aren't enabled, always indicate we are in a deferred * context. */ bool in_deferred_context(void) { return true; } /* LCOV_EXCL_STOP */