Re: [PATCH v3,2/9] MIPS: Optimise core library functions for microMIPS.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[...]
--- a/arch/mips/include/asm/page.h
+++ b/arch/mips/include/asm/page.h
@@ -45,6 +45,12 @@
  #define HUGETLB_PAGE_ORDER	({BUILD_BUG(); 0; })
  #endif /* CONFIG_HUGETLB_PAGE */

+/*
+ * Clear and copy array sizes for micro-assembly of clear_page/copy_page.
+ */
+#define CLEAR_PAGE_ARRAY_SIZE	288
+#define COPY_PAGE_ARRAY_SIZE	1344
+

This is not so clean.  page.h really shouldn't have things like this.

Just put a label at the beginning and end of the code and have the compiler calculate the size from the difference.

David Daney



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux