static DEFINE_RAW_SPINLOCK(quarantine_lock);
 DEFINE_STATIC_SRCU(remove_cache_srcu);
 
-#ifdef CONFIG_PREEMPT_RT
 struct cpu_shrink_qlist {
        raw_spinlock_t lock;
        struct qlist_head qlist;
 static DEFINE_PER_CPU(struct cpu_shrink_qlist, shrink_qlist) = {
        .lock = __RAW_SPIN_LOCK_UNLOCKED(shrink_qlist.lock),
 };
-#endif
 
 /* Maximum size of the global queue. */
 static unsigned long quarantine_max_size;
        }
 }
 
-#ifndef CONFIG_PREEMPT_RT
-static void __per_cpu_remove_cache(struct qlist_head *q, void *arg)
-{
-       struct kmem_cache *cache = arg;
-       struct qlist_head to_free = QLIST_INIT;
-
-       qlist_move_cache(q, &to_free, cache);
-       qlist_free_all(&to_free, cache);
-}
-#else
 static void __per_cpu_remove_cache(struct qlist_head *q, void *arg)
 {
        struct kmem_cache *cache = arg;
        qlist_move_cache(q, &sq->qlist, cache);
        raw_spin_unlock_irqrestore(&sq->lock, flags);
 }
-#endif
 
 static void per_cpu_remove_cache(void *arg)
 {
 {
        unsigned long flags, i;
        struct qlist_head to_free = QLIST_INIT;
+       int cpu;
+       struct cpu_shrink_qlist *sq;
 
        /*
         * Must be careful to not miss any objects that are being moved from
         */
        on_each_cpu(per_cpu_remove_cache, cache, 1);
 
-#ifdef CONFIG_PREEMPT_RT
-       {
-               int cpu;
-               struct cpu_shrink_qlist *sq;
-
-               for_each_online_cpu(cpu) {
-                       sq = per_cpu_ptr(&shrink_qlist, cpu);
-                       raw_spin_lock_irqsave(&sq->lock, flags);
-                       qlist_move_cache(&sq->qlist, &to_free, cache);
-                       raw_spin_unlock_irqrestore(&sq->lock, flags);
-               }
-               qlist_free_all(&to_free, cache);
+       for_each_online_cpu(cpu) {
+               sq = per_cpu_ptr(&shrink_qlist, cpu);
+               raw_spin_lock_irqsave(&sq->lock, flags);
+               qlist_move_cache(&sq->qlist, &to_free, cache);
+               raw_spin_unlock_irqrestore(&sq->lock, flags);
        }
-#endif
+       qlist_free_all(&to_free, cache);
 
        raw_spin_lock_irqsave(&quarantine_lock, flags);
        for (i = 0; i < QUARANTINE_BATCHES; i++) {