feat(power-management-core): hackfix to get sysctls working with tokio

Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
Ariadne Conill 2024-06-28 23:29:59 -07:00
parent 20018b6170
commit d5af8f4851
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ impl XenCall {
value: SysctlValue {
cputopoinfo: SysctlCputopoinfo {
num_cpus: 0,
handle: null_mut(),
handle: 0,
},
},
};
@ -958,7 +958,7 @@ impl XenCall {
value: SysctlValue {
cputopoinfo: SysctlCputopoinfo {
num_cpus: 0,
handle: null_mut(),
handle: 0,
},
},
};
@ -979,7 +979,7 @@ impl XenCall {
value: SysctlValue {
cputopoinfo: SysctlCputopoinfo {
num_cpus: cpus,
handle: topos.as_mut_ptr(),
handle: topos.as_mut_ptr() as c_ulong,
},
},
};

View File

@ -747,7 +747,7 @@ pub struct SysctlPmOp {
#[derive(Clone, Copy, Debug)]
pub struct SysctlCputopoinfo {
pub num_cpus: u32,
pub handle: *mut SysctlCputopo,
pub handle: c_ulong,
}
#[repr(C)]