summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-26 04:42:12 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-26 05:27:59 -0300
commita156245300d5362a3b4c4afdace9e2b90169fe43 (patch)
tree392741d5ee3e05bc089c7af2db884b99899217d7 /include/asm-generic
parent03dd4cb26d967f9588437b0fc9cc0e8353322bb7 (diff)
Remove UKSM support since the latest patch is very unstable and obsolete for the 4.5-gnu kernel version
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/pgtable.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index f387ed12c..c370b261c 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -601,25 +601,12 @@ extern void untrack_pfn(struct vm_area_struct *vma, unsigned long pfn,
extern void untrack_pfn_moved(struct vm_area_struct *vma);
#endif
-#ifdef CONFIG_UKSM
-static inline int is_uksm_zero_pfn(unsigned long pfn)
-{
- extern unsigned long uksm_zero_pfn;
- return pfn == uksm_zero_pfn;
-}
-#else
-static inline int is_uksm_zero_pfn(unsigned long pfn)
-{
- return 0;
-}
-#endif
-
#ifdef __HAVE_COLOR_ZERO_PAGE
static inline int is_zero_pfn(unsigned long pfn)
{
extern unsigned long zero_pfn;
unsigned long offset_from_zero_pfn = pfn - zero_pfn;
- return offset_from_zero_pfn <= (zero_page_mask >> PAGE_SHIFT) || is_uksm_zero_pfn(pfn);
+ return offset_from_zero_pfn <= (zero_page_mask >> PAGE_SHIFT);
}
#define my_zero_pfn(addr) page_to_pfn(ZERO_PAGE(addr))
@@ -628,7 +615,7 @@ static inline int is_zero_pfn(unsigned long pfn)
static inline int is_zero_pfn(unsigned long pfn)
{
extern unsigned long zero_pfn;
- return (pfn == zero_pfn) || (is_uksm_zero_pfn(pfn));
+ return pfn == zero_pfn;
}
static inline unsigned long my_zero_pfn(unsigned long addr)