Merge tag 'mm-nonmm-stable-2022-10-11' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-starfive.git] / arch / powerpc / kernel / process.c
index 0fbda89..40834ef 100644 (file)
@@ -127,7 +127,7 @@ unsigned long notrace msr_check_and_set(unsigned long bits)
                newmsr |= MSR_VSX;
 
        if (oldmsr != newmsr)
-               mtmsr_isync(newmsr);
+               newmsr = mtmsr_isync_irqsafe(newmsr);
 
        return newmsr;
 }
@@ -145,7 +145,7 @@ void notrace __msr_check_and_clear(unsigned long bits)
                newmsr &= ~MSR_VSX;
 
        if (oldmsr != newmsr)
-               mtmsr_isync(newmsr);
+               mtmsr_isync_irqsafe(newmsr);
 }
 EXPORT_SYMBOL(__msr_check_and_clear);
 
@@ -1655,11 +1655,6 @@ EXPORT_SYMBOL_GPL(set_thread_tidr);
 
 #endif /* CONFIG_PPC64 */
 
-void
-release_thread(struct task_struct *t)
-{
-}
-
 /*
  * this gets called so that we can store coprocessor state into memory and
  * copy the current task into the new thread.