Jaspreet Singh writes:
> Shifting r1 by 9 has the right effect.  Do you think there is a way to
> incorporate HZ into this udelay routine? I got the impression that you
> don't want to add any more instructions to this routine due to timing
> constraints.

Sorry, yes, it should've been 9.

The code is rather optimised for both code size as well as keeping all
the values within a manageable size (ie no overflows).

What I would consider is making some of the constants conditional on the
setting of HZ.
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |            http://www.arm.linux.org.uk/            /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to