mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
feat(power-management-core): hackfix to get sysctls working with tokio
Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
@ -98,7 +98,7 @@ impl XenCall {
|
|||||||
value: SysctlValue {
|
value: SysctlValue {
|
||||||
cputopoinfo: SysctlCputopoinfo {
|
cputopoinfo: SysctlCputopoinfo {
|
||||||
num_cpus: 0,
|
num_cpus: 0,
|
||||||
handle: null_mut(),
|
handle: 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -958,7 +958,7 @@ impl XenCall {
|
|||||||
value: SysctlValue {
|
value: SysctlValue {
|
||||||
cputopoinfo: SysctlCputopoinfo {
|
cputopoinfo: SysctlCputopoinfo {
|
||||||
num_cpus: 0,
|
num_cpus: 0,
|
||||||
handle: null_mut(),
|
handle: 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -979,7 +979,7 @@ impl XenCall {
|
|||||||
value: SysctlValue {
|
value: SysctlValue {
|
||||||
cputopoinfo: SysctlCputopoinfo {
|
cputopoinfo: SysctlCputopoinfo {
|
||||||
num_cpus: cpus,
|
num_cpus: cpus,
|
||||||
handle: topos.as_mut_ptr(),
|
handle: topos.as_mut_ptr() as c_ulong,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -747,7 +747,7 @@ pub struct SysctlPmOp {
|
|||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub struct SysctlCputopoinfo {
|
pub struct SysctlCputopoinfo {
|
||||||
pub num_cpus: u32,
|
pub num_cpus: u32,
|
||||||
pub handle: *mut SysctlCputopo,
|
pub handle: c_ulong,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
Reference in New Issue
Block a user