/* MN10300 Short delay interpolation routines * * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Licence * as published by the Free Software Foundation; either version * 2 of the Licence, or (at your option) any later version. */ #include <linux/module.h> #include <linux/sched.h> #include <linux/delay.h> #include <asm/div64.h> /* * basic delay loop */
void __delay(unsigned long loops) { int d0; asm volatile( " bra 1f \n" " .align 4 \n" "1: bra 2f \n" " .align 4 \n" "2: add -1,%0 \n" " bne 2b \n" : "=&d" (d0) : "0" (loops) : "cc"); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 14 | 93.33% | 1 | 50.00% |
Mark Salter | 1 | 6.67% | 1 | 50.00% |
Total | 15 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 39 | 79.59% | 1 | 50.00% |
Akira Takeuchi | 10 | 20.41% | 1 | 50.00% |
Total | 49 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 78 | 87.64% | 1 | 33.33% |
Akira Takeuchi | 10 | 11.24% | 1 | 33.33% |
Mark Salter | 1 | 1.12% | 1 | 33.33% |
Total | 89 | 100.00% | 3 | 100.00% |