// Copyright 2023 The ChromiumOS Authors1// Use of this source code is governed by a BSD-style license that can be2// found in the LICENSE file.34use vm_control::DeviceId;5use vm_control::PlatformDeviceId;67use crate::BusDevice;8use crate::Suspendable;910pub struct VirtCpufreq {}1112// Stub implementation for a virtual cpufreq device. Do not remove.13// Implementation will be added once linux upstream interface stablizes.14impl VirtCpufreq {15pub fn new(pcpu: u32, _cpu_capacity: u32, _cpu_fmax: u32) -> Self {16panic!("Virt Cpufreq not supported, do not use! {pcpu}");17}18}1920impl BusDevice for VirtCpufreq {21fn device_id(&self) -> DeviceId {22PlatformDeviceId::VirtCpufreq.into()23}2425fn debug_label(&self) -> String {26"VirtCpufreq Device".to_owned()27}28}2930impl Suspendable for VirtCpufreq {}313233