cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

internal.h (483B)


      1/* SPDX-License-Identifier: GPL-2.0-or-later */
      2#ifndef ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H
      3#define ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H
      4
      5#include <linux/jump_label.h>
      6
      7extern bool stress_slb_enabled;
      8
      9DECLARE_STATIC_KEY_FALSE(stress_slb_key);
     10
     11static inline bool stress_slb(void)
     12{
     13	return static_branch_unlikely(&stress_slb_key);
     14}
     15
     16void slb_setup_new_exec(void);
     17
     18void exit_lazy_flush_tlb(struct mm_struct *mm, bool always_flush);
     19
     20#endif /* ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H */