diff options
author | Andrew Kaster <akaster@serenityos.org> | 2021-10-31 15:54:39 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-14 22:52:35 +0100 |
commit | 65edc62c0250cc544bb098e112de3991144079d4 (patch) | |
tree | 71659c558a49008c415c3aab241ae9ec2efbcad4 /Kernel/Arch/x86/Processor.h | |
parent | a92132e44a638a20537f66c860f6a4ebdc41062a (diff) | |
download | serenity-65edc62c0250cc544bb098e112de3991144079d4.zip |
Kernel: Resolve clang-tidy readability-make-member-function-const
... In files included from Kernel/Thread.cpp or Kernel/Process.cpp
Some places the warning is suppressed, because we do not want a const
object do have non-const access to the returned sub-object.
Diffstat (limited to 'Kernel/Arch/x86/Processor.h')
-rw-r--r-- | Kernel/Arch/x86/Processor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Arch/x86/Processor.h b/Kernel/Arch/x86/Processor.h index 9ba01358dd..a099b46f80 100644 --- a/Kernel/Arch/x86/Processor.h +++ b/Kernel/Arch/x86/Processor.h @@ -120,12 +120,12 @@ public: void detect_hypervisor(); void detect_hypervisor_hyperv(CPUID const& hypervisor_leaf_range); - void idle_begin() + void idle_begin() const { s_idle_cpu_mask.fetch_or(1u << m_cpu, AK::MemoryOrder::memory_order_relaxed); } - void idle_end() + void idle_end() const { s_idle_cpu_mask.fetch_and(~(1u << m_cpu), AK::MemoryOrder::memory_order_relaxed); } |