mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Remove enable_interrupt_controller()
After adding "get_interrupt_controller()" function in DeviceManager, "enable_interrupt_controller()" became redundant, because the latter one is the a simple wrapper on the interrupt controller. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
committed by
Rob Bradford
parent
9a5f3fc2a7
commit
7f3fa39d81
@@ -1257,14 +1257,6 @@ impl DeviceManager {
|
||||
self.interrupt_controller.as_ref()
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
pub fn enable_interrupt_controller(&self) -> DeviceManagerResult<()> {
|
||||
if let Some(interrupt_controller) = &self.interrupt_controller {
|
||||
interrupt_controller.lock().unwrap().enable().unwrap();
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
fn add_interrupt_controller(
|
||||
&mut self,
|
||||
|
||||
Reference in New Issue
Block a user