pgtable.c (87832e937c808a7ebc41254b408362e3255c87c9) pgtable.c (907835e6dee6f77ac30ae50bb3f88bd92055c86e)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation.
4 */
5
6#include <linux/sched.h>
7#include <linux/mm_types.h>
8#include <linux/memblock.h>

--- 116 unchanged lines hidden (view full) ---

125#ifdef CONFIG_DEBUG_VM
126 /*
127 * Make sure hardware valid bit is not set. We don't do
128 * tlb flush for this update.
129 */
130
131 WARN_ON(pte_hw_valid(pud_pte(*pudp)));
132 assert_spin_locked(pud_lockptr(mm, pudp));
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright 2015-2016, Aneesh Kumar K.V, IBM Corporation.
4 */
5
6#include <linux/sched.h>
7#include <linux/mm_types.h>
8#include <linux/memblock.h>

--- 116 unchanged lines hidden (view full) ---

125#ifdef CONFIG_DEBUG_VM
126 /*
127 * Make sure hardware valid bit is not set. We don't do
128 * tlb flush for this update.
129 */
130
131 WARN_ON(pte_hw_valid(pud_pte(*pudp)));
132 assert_spin_locked(pud_lockptr(mm, pudp));
133 WARN_ON(!(pud_large(pud)));
133 WARN_ON(!(pud_leaf(pud)));
134#endif
135 trace_hugepage_set_pud(addr, pud_val(pud));
136 return set_pte_at(mm, addr, pudp_ptep(pudp), pud_pte(pud));
137}
138
139static void do_serialize(void *arg)
140{
141 /* We've taken the IPI, so try to trim the mask while here */

--- 515 unchanged lines hidden ---
134#endif
135 trace_hugepage_set_pud(addr, pud_val(pud));
136 return set_pte_at(mm, addr, pudp_ptep(pudp), pud_pte(pud));
137}
138
139static void do_serialize(void *arg)
140{
141 /* We've taken the IPI, so try to trim the mask while here */

--- 515 unchanged lines hidden ---