Skip to content

Commit

Permalink
Kernel: Remove the now defunct RESTORE_LOCK(..) macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgianfo committed Apr 25, 2021
1 parent 0accebe commit 1b93a70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Kernel/Lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class Locker {
};

#define LOCKER(...) Locker locker(__VA_ARGS__)
#define RESTORE_LOCK(lock, ...) (lock).restore_lock(__VA_ARGS__)

template<typename T>
class Lockable {
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void Thread::relock_process(LockMode previous_locked, u32 lock_count_to_restore)

if (previous_locked != LockMode::Unlocked) {
// We've unblocked, relock the process if needed and carry on.
RESTORE_LOCK(process().big_lock(), previous_locked, lock_count_to_restore);
process().big_lock().restore_lock(previous_locked, lock_count_to_restore);
}
}

Expand Down

0 comments on commit 1b93a70

Please sign in to comment.