]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/m68k/kernel/process_no.c
sched/rt: Use schedule_preempt_disabled()
[mirror_ubuntu-bionic-kernel.git] / arch / m68k / kernel / process_no.c
index 69c1803fcf1bed00b4a2ba6a60956992543ffac1..f7fe6c3485954e9754c353a1c48c81b09c41b7fd 100644 (file)
@@ -73,9 +73,7 @@ void cpu_idle(void)
        /* endless idle loop with no priority at all */
        while (1) {
                idle();
-               preempt_enable_no_resched();
-               schedule();
-               preempt_disable();
+               schedule_preempt_disabled();
        }
 }
 
@@ -163,8 +161,8 @@ void flush_thread(void)
 #ifdef CONFIG_FPU
        if (!FPU_IS_EMU)
                asm volatile (".chip 68k/68881\n\t"
-                             "frestore %0@\n\t"
-                             ".chip 68k" : : "a" (&zero));
+                             "frestore %0\n\t"
+                             ".chip 68k" : : "m" (zero));
 #endif
 }