pub fn prepare_to_set(&mut self, asid_enable: bool) {
        // Assembly code also trusts on this.
        assert_eq!(
            offset_of!(CpuData, preempt_count),
            Self::preempt_count_offset()
        );
        assert_eq!(offset_of!(CpuData, should_schedule), 12);
        assert_eq!(self.reference, 0);
        self.reference = self as *mut _ as usize;
        self.asid_enable.set(asid_enable);
    }
/// Prepare to set the per-CPU data.
Prepare to set the per-CPU data.
Prepare to set the per - CPU data .
pub fn prepare_to_set(&mut self, asid_enable: bool) {
        // Assembly code also trusts on this.
        assert_eq!(
            offset_of!(CpuData, preempt_count),
            Self::preempt_count_offset()
        );
        assert_eq!(offset_of!(CpuData, should_schedule), 12);
        assert_eq!(self.reference, 0);
        self.reference = self as *mut _ as usize;
        self.asid_enable.set(asid_enable);
    }
pub fn prepare_to_set ( & mut self , asid_enable : bool ) { // Assembly code also trusts on this. assert_eq ! ( offset_of ( CpuData preempt_count ) Self preempt_count_offset ( ) ) ; assert_eq ! ( offset_of ( CpuData should_schedule ) 12 ) ; assert_eq ! ( self reference 0 ) ; self . reference = self as * mut _ as usize ; self . asid_enable . set ( asid_enable ) ; }
Prepare to set the per-CPU data.
Prepare to set the per - CPU data .
&mut self
asid_enable
bool
&mut self
asid_enable
bool