powerpc/64s: Remove POWER9 DD1 support
[linux-2.6-block.git] / arch / powerpc / kernel / process.c
index 9ef4aea9fffe8f461677ce1a879bd0734602ee8a..27f0caee55ea79652746e50887aabe9dce82ca23 100644 (file)
@@ -1250,17 +1250,9 @@ struct task_struct *__switch_to(struct task_struct *prev,
                 * mappings. If the new process has the foreign real address
                 * mappings, we must issue a cp_abort to clear any state and
                 * prevent snooping, corruption or a covert channel.
-                *
-                * DD1 allows paste into normal system memory so we do an
-                * unpaired copy, rather than cp_abort, to clear the buffer,
-                * since cp_abort is quite expensive.
                 */
-               if (current_thread_info()->task->thread.used_vas) {
+               if (current_thread_info()->task->thread.used_vas)
                        asm volatile(PPC_CP_ABORT);
-               } else if (cpu_has_feature(CPU_FTR_POWER9_DD1)) {
-                       asm volatile(PPC_COPY(%0, %1)
-                                       : : "r"(dummy_copy_buffer), "r"(0));
-               }
        }
 #endif /* CONFIG_PPC_BOOK3S_64 */