Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use stabilized hint::spin_loop instead of deprecated `atomic::spin_…
…loop_hint`
  • Loading branch information
phil-opp committed Jan 15, 2021
1 parent 679eaa1 commit cd497a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog.md
@@ -1,5 +1,7 @@
# Unreleased

- Use stabilized `hint::spin_loop` instead of deprecated `atomic::spin_loop_hint`

# 0.2.10 – 2020-10-01

- Fix default feature breakage ([#11](https://github.com/rust-osdev/uart_16550/pull/11))
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -27,7 +27,7 @@ use x86_64::instructions::port::Port;
macro_rules! wait_for {
($cond:expr) => {
while !$cond {
core::sync::atomic::spin_loop_hint()
core::hint::spin_loop()
}
};
}
Expand Down

0 comments on commit cd497a9

Please sign in to comment.