/* * Copyright (C) 2012 Regents of the University of California * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, version 2. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef _ASM_RISCV_TIMEX_H #define _ASM_RISCV_TIMEX_H #include <asm/param.h> typedef unsigned long cycles_t;
static inline cycles_t get_cycles_inline(void) { cycles_t n; __asm__ __volatile__ ( "rdtime %0" : "=r" (n)); return n; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Palmer Dabbelt | 17 | 94.44% | 1 | 50.00% |
Olof Johansson | 1 | 5.56% | 1 | 50.00% |
Total | 18 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Palmer Dabbelt | 13 | 100.00% | 1 | 100.00% |
Total | 13 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Palmer Dabbelt | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Palmer Dabbelt | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Palmer Dabbelt | 110 | 95.65% | 1 | 50.00% |
Olof Johansson | 5 | 4.35% | 1 | 50.00% |
Total | 115 | 100.00% | 2 | 100.00% |