hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/c6x/include/asm/pgtable.h
....@@ -1,17 +1,14 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Port on Texas Instruments TMS320C6x architecture
34 *
45 * Copyright (C) 2004, 2009, 2010 Texas Instruments Incorporated
56 * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118 #ifndef _ASM_C6X_PGTABLE_H
129 #define _ASM_C6X_PGTABLE_H
1310
14
-#include <asm-generic/4level-fixup.h>
11
+#include <asm-generic/pgtable-nopud.h>
1512
1613 #include <asm/setup.h>
1714 #include <asm/page.h>
....@@ -29,7 +26,6 @@
2926 #define pgd_clear(pgdp)
3027 #define kern_addr_valid(addr) (1)
3128
32
-#define pmd_offset(a, b) ((void *)0)
3329 #define pmd_none(x) (!pmd_val(x))
3430 #define pmd_present(x) (pmd_val(x))
3531 #define pmd_clear(xp) do { set_pmd(xp, __pmd(0)); } while (0)
....@@ -63,15 +59,8 @@
6359 #define swapper_pg_dir ((pgd_t *) 0)
6460
6561 /*
66
- * No page table caches to initialise
67
- */
68
-#define pgtable_cache_init() do { } while (0)
69
-
70
-/*
7162 * c6x is !MMU, so define the simpliest implementation
7263 */
7364 #define pgprot_writecombine pgprot_noncached
74
-
75
-#include <asm-generic/pgtable.h>
7665
7766 #endif /* _ASM_C6X_PGTABLE_H */