summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/book3s64/internal.h
blob: 7eda0d30d765458b1c3f76d3d1d7f9f5f54f3c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H
#define ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H

#include <linux/jump_label.h>

extern bool stress_slb_enabled;

DECLARE_STATIC_KEY_FALSE(stress_slb_key);

static inline bool stress_slb(void)
{
	return static_branch_unlikely(&stress_slb_key);
}

#endif /* ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H */