add a wfi specifier to the bio clock change api

this indicates if we're going into or out of wfi - this matters
because the clock rate asymmetry can be quite great, and the
calling function can have different optimizations for each mode
of operation
This commit is contained in:
bunnie 2026-05-08 03:13:30 +08:00
parent d30ef2f197
commit 50dcf7880f

View file

@ -52,8 +52,8 @@ pub trait BioApi<'a> {
fn update_bio_freq(&mut self, freq: u32) -> u32;
/// Called before frequency changes to activate any application-specific callbacks
/// to avoid glitches.
fn prep_freq_change(&mut self);
/// to avoid glitches. `into_wfi` specifies if we're about to enter a WFI state.
fn prep_freq_change(&mut self, into_wfi: bool);
/// Returns the frequency, in Hz, of the incoming clock to the BIO cores.
fn get_bio_freq(&self) -> u32;