fn expect_performance_scale(&self, logical_cpu_numbers: &[u32], float_scale: f64) {
            let scale = NormPerfs(float_scale).try_into().unwrap();
            let info = logical_cpu_numbers
                .iter()
                .map(|n| sys::zx_cpu_performance_info_t {
                    logical_cpu_number: *n,
                    performance_scale: scale,
                })
                .collect::<Vec<_>>();
            self.syscall.add_msg_response_pair((
                msg_eq!(SetCpuPerformanceInfo(info)),
                msg_ok_return!(SetCpuPerformanceInfo),
            ));
        }
// Tells the syscall handler to expect a SetCpuPerformanceInfo call for the provided
// collection of CPUs and performance scale.
Tells the syscall handler to expect a SetCpuPerformanceInfo call for the provided
collection of CPUs and performance scale.
Tells the syscall handler to expect a SetCpuPerformanceInfo call for the provided collection of CPUs and performance scale .
fn expect_performance_scale(&self, logical_cpu_numbers: &[u32], float_scale: f64) {
            let scale = NormPerfs(float_scale).try_into().unwrap();
            let info = logical_cpu_numbers
                .iter()
                .map(|n| sys::zx_cpu_performance_info_t {
                    logical_cpu_number: *n,
                    performance_scale: scale,
                })
                .collect::<Vec<_>>();
            self.syscall.add_msg_response_pair((
                msg_eq!(SetCpuPerformanceInfo(info)),
                msg_ok_return!(SetCpuPerformanceInfo),
            ));
        }
fn expect_performance_scale ( & self , logical_cpu_numbers : & [ u32 ] , float_scale : f64 ) { let scale = NormPerfs ( float_scale ) . try_into ( ) . unwrap ( ) ; let info = logical_cpu_numbers . iter ( ) . map ( | n | sys :: zx_cpu_performance_info_t { logical_cpu_number : * n , performance_scale : scale , } ) . collect :: < Vec < _ > > ( ) ; self . syscall . add_msg_response_pair ( ( msg_eq ! ( SetCpuPerformanceInfo ( info ) ) , msg_ok_return ! ( SetCpuPerformanceInfo ) , ) ) ; }
Tells the syscall handler to expect a SetCpuPerformanceInfo call for the provided
collection of CPUs and performance scale.
Tells the syscall handler to expect a SetCpuPerformanceInfo call for the provided collection of CPUs and performance scale .
&self
logical_cpu_numbers
&[u32]
float_scale
f64
&self
logical_cpu_numbers
&[u32]
float_scale
f64