Skip to content

Commit 17a86ae

Browse files
committed
aml: fix spelling of AmlError::MutexAcquireTimeout
1 parent 697702d commit 17a86ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/aml/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,7 +2877,7 @@ pub enum AmlError {
28772877
UnexpectedResourceType,
28782878

28792879
NoHandlerForRegionAccess(RegionSpace),
2880-
MutexAquireTimeout,
2880+
MutexAcquireTimeout,
28812881

28822882
PrtInvalidAddress,
28832883
PrtInvalidPin,
@@ -2946,9 +2946,9 @@ pub trait Handler: Send + Sync {
29462946
/// Acquire the mutex referred to by the given handle. `timeout` is a millisecond timeout value
29472947
/// with the following meaning:
29482948
/// - `0` - try to acquire the mutex once, in a non-blocking manner. If the mutex cannot be
2949-
/// acquired immediately, return `Err(AmlError::MutexAquireTimeout)`
2949+
/// acquired immediately, return `Err(AmlError::MutexAcquireTimeout)`
29502950
/// - `1-0xfffe` - try to acquire the mutex for at least `timeout` milliseconds.
2951-
/// - `0xffff` - try to acquire the mutex indefinitely. Should not return `MutexAquireTimeout`.
2951+
/// - `0xffff` - try to acquire the mutex indefinitely. Should not return `MutexAcquireTimeout`.
29522952
///
29532953
/// AML mutexes are **reentrant** - that is, a thread may acquire the same mutex more than once
29542954
/// without causing a deadlock.

0 commit comments

Comments
 (0)