浏览代码

Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 asm fixlets from Ingo Molnar:
 "A clobber list fix and cleanups"

* 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/asm: Trim clear_page.S includes
  x86/asm: Clobber flags in clear_page()
Linus Torvalds 7 年之前
父节点
当前提交
5e46caf62d
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 1 1
      arch/x86/include/asm/page_64.h
  2. 0 2
      arch/x86/lib/clear_page_64.S

+ 1 - 1
arch/x86/include/asm/page_64.h

@@ -47,7 +47,7 @@ static inline void clear_page(void *page)
 			   clear_page_erms, X86_FEATURE_ERMS,
 			   "=D" (page),
 			   "0" (page)
-			   : "memory", "rax", "rcx");
+			   : "cc", "memory", "rax", "rcx");
 }
 
 void copy_page(void *to, void *from);

+ 0 - 2
arch/x86/lib/clear_page_64.S

@@ -1,6 +1,4 @@
 #include <linux/linkage.h>
-#include <asm/cpufeatures.h>
-#include <asm/alternative-asm.h>
 #include <asm/export.h>
 
 /*