cregit-Linux how code gets into the kernel

Release 4.7 tools/testing/selftests/powerpc/tm/tm.h

/*
 * Copyright 2015, Michael Ellerman, IBM Corp.
 * Licensed under GPLv2.
 */

#ifndef _SELFTESTS_POWERPC_TM_TM_H

#define _SELFTESTS_POWERPC_TM_TM_H

#include <stdbool.h>
#include <asm/cputable.h>

#include "../utils.h"


static inline bool have_htm(void) { #ifdef PPC_FEATURE2_HTM return have_hwcap2(PPC_FEATURE2_HTM); #else printf("PPC_FEATURE2_HTM not defined, can't check AT_HWCAP2\n"); return false; #endif }

Contributors

PersonTokensPropCommitsCommitProp
michael ellermanmichael ellerman30100.00%1100.00%
Total30100.00%1100.00%


static inline bool have_htm_nosc(void) { #ifdef PPC_FEATURE2_HTM_NOSC return have_hwcap2(PPC_FEATURE2_HTM_NOSC); #else printf("PPC_FEATURE2_HTM_NOSC not defined, can't check AT_HWCAP2\n"); return false; #endif }

Contributors

PersonTokensPropCommitsCommitProp
michael ellermanmichael ellerman30100.00%1100.00%
Total30100.00%1100.00%

#endif /* _SELFTESTS_POWERPC_TM_TM_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
michael ellermanmichael ellerman79100.00%1100.00%
Total79100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}