From 434add551c2a17cac3804ff0f587d31be03f070e Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 19 Jan 2025 11:03:57 -0800 Subject: lib: utils: Initialize miscellaneous drivers in one pass For driver subsystems that are not tightly integrated into the OpenSBI init sequence, it is not important that the drivers are initialized in any particular order. By putting all of these drivers in one array, they can all be initialized with a single pass through the devicetree. This saves about 10 ms of boot time on HiFive Unmatched. Signed-off-by: Samuel Holland Reviewed-by: Anup Patel --- include/sbi_utils/cppc/fdt_cppc.h | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 include/sbi_utils/cppc/fdt_cppc.h (limited to 'include/sbi_utils/cppc') diff --git a/include/sbi_utils/cppc/fdt_cppc.h b/include/sbi_utils/cppc/fdt_cppc.h deleted file mode 100644 index 433c6d32..00000000 --- a/include/sbi_utils/cppc/fdt_cppc.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2024 Ventana Micro Systems Inc. - * - * Authors: - * Anup Patel - */ - -#ifndef __FDT_CPPC_H__ -#define __FDT_CPPC_H__ - -#include -#include - -#ifdef CONFIG_FDT_CPPC - -void fdt_cppc_init(const void *fdt); - -#else - -static inline void fdt_cppc_init(const void *fdt) { } - -#endif - -#endif -- cgit v1.3.1