/* * Copyright (C) 2011 Richard Weinberger <richrd@nod.at> * Mostly copied from arch/x86/lib/delay.c * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/delay.h> #include <asm/param.h>
void __delay(unsigned long loops) { asm volatile( "test %0,%0\n" "jz 3f\n" "jmp 1f\n" ".align 16\n" "1: jmp 2f\n" ".align 16\n" "2: dec %0\n" " jnz 2b\n" "3: dec %0\n" : /* we don't need output */ : "a" (loops) ); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 8 | 57.14% | 1 | 50.00% |
Richard Weinberger | 6 | 42.86% | 1 | 50.00% |
Total | 14 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Richard Weinberger | 18 | 75.00% | 1 | 33.33% |
Jeff Dike | 6 | 25.00% | 2 | 66.67% |
Total | 24 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Bodo Stroesser | 10 | 58.82% | 1 | 33.33% |
Richard Weinberger | 6 | 35.29% | 1 | 33.33% |
Jeff Dike | 1 | 5.88% | 1 | 33.33% |
Total | 17 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Richard Weinberger | 17 | 100.00% | 1 | 100.00% |
Total | 17 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Richard Weinberger | 65 | 61.90% | 1 | 20.00% |
Jeff Dike | 25 | 23.81% | 2 | 40.00% |
Bodo Stroesser | 14 | 13.33% | 1 | 20.00% |
Paul Gortmaker | 1 | 0.95% | 1 | 20.00% |
Total | 105 | 100.00% | 5 | 100.00% |