1. 15 Jan, 2024 1 commit
    • Leonardo Bras's avatar
      spinlock: Fix failing build for PREEMPT_RT · 5f4c01f1
      Leonardo Bras authored
      Since 1d71b30e1f85 ("sched.h: Move (spin|rwlock)_needbreak() to
      spinlock.h") build fails for PREEMPT_RT, since there is no definition
      available of either spin_needbreak() and rwlock_needbreak().
      
      Since it was moved on the mentioned commit, it was placed inside a
      !PREEMPT_RT part of the code, making it out of reach for an RT kernel.
      
      Fix this by moving code it a few lines down so it can be reached by an
      RT build, where it can also make use of the *_is_contended() definition
      added by the spinlock_rt.h.
      
      Fixes: d1d71b30 ("sched.h: Move (spin|rwlock)_needbreak() to
      spinlock.h")
      Signed-off-by: default avatarLeonardo Bras <leobras@redhat.com>
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      Acked-by: default avatarWaiman Long <longman@redhat.com>
      5f4c01f1
  2. 27 Dec, 2023 6 commits
  3. 21 Dec, 2023 33 commits