/* * Copyright 2013, Michael Ellerman, IBM Corp. * Licensed under GPLv2. */ #ifndef _SELFTESTS_POWERPC_UTILS_H #define _SELFTESTS_POWERPC_UTILS_H #define __cacheline_aligned __attribute__((aligned(128))) #include <stdint.h> #include <stdbool.h> #include <linux/auxvec.h> #include "reg.h" /* Avoid headaches with PRI?64 - just use %ll? always */ typedef unsigned long long u64; typedef signed long long s64; /* Just for familiarity */ typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; int test_harness(int (test_function)(void), char *name); extern void *get_auxv_entry(int type); int pick_online_cpu(void);
static inline bool have_hwcap2(unsigned long ftr2) { return ((unsigned long)get_auxv_entry(AT_HWCAP2) & ftr2) == ftr2; }Contributors
| Person | Tokens | Prop | Commits | CommitProp | |
| michael ellerman | michael ellerman | 27 | 100.00% | 1 | 100.00% |
| Total | 27 | 100.00% | 1 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| michael ellerman | michael ellerman | 126 | 80.77% | 5 | 55.56% |
| chris smart | chris smart | 14 | 8.97% | 1 | 11.11% |
| sam bobroff | sam bobroff | 9 | 5.77% | 1 | 11.11% |
| greg kurz | greg kurz | 4 | 2.56% | 1 | 11.11% |
| rashmica gupta | rashmica gupta | 3 | 1.92% | 1 | 11.11% |
| Total | 156 | 100.00% | 9 | 100.00% |