summaryrefslogtreecommitdiffstats
path: root/arch/ppc/lib/ticks.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/lib/ticks.S')
-rw-r--r--arch/ppc/lib/ticks.S22
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/ppc/lib/ticks.S b/arch/ppc/lib/ticks.S
index b8d25b7f46..2d9cc588de 100644
--- a/arch/ppc/lib/ticks.S
+++ b/arch/ppc/lib/ticks.S
@@ -41,25 +41,3 @@ get_ticks:
cmp 0,r3,r5
bne 1b
blr
-
-/*
- * Delay for a number of ticks
- */
- .globl wait_ticks
-wait_ticks:
- mflr r8 /* save link register */
- mr r7, r3 /* save tick count */
- bl get_ticks /* Get start time */
-
- /* Calculate end time */
- addc r7, r4, r7 /* Compute end time lower */
- addze r6, r3 /* and end time upper */
-
- WATCHDOG_RESET /* Trigger watchdog, if needed */
-1: bl get_ticks /* Get current time */
- subfc r4, r4, r7 /* Subtract current time from end time */
- subfe. r3, r3, r6
- bge 1b /* Loop until time expired */
-
- mtlr r8 /* restore link register */
- blr