Skip to content

Commit

Permalink
remove pub(crate) of init_amx
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyizhang-1 committed Jul 26, 2024
1 parent 5b91c2b commit 9ed4c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core_arch/src/x86_64/amx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ mod tests {

#[cfg(not(target_os = "linux"))]
#[target_feature(enable = "amx-tile")]
pub(crate) fn _init_amx() {}
fn _init_amx() {}

#[cfg(target_os = "linux")]
#[target_feature(enable = "amx-tile")]
#[inline]
pub(crate) unsafe fn _init_amx() {
unsafe fn _init_amx() {
let mut ret: usize;
let mut xfeatures: usize = 0;
ret = syscall!(Sysno::arch_prctl, 0x1022, &mut xfeatures as *mut usize)
Expand Down

0 comments on commit 9ed4c6b

Please sign in to comment.