Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | 5 (Reason code) |
R1 | Speed index |
Exit | |
---|---|
R0 | Corresponding MHz value |
The purpose of this call is to convert a speed index to a MHz clock rate.
Due to hardware restrictions or for performance reasons, most systems will only support a limited number of CPU clock rates. This call, along with Portable_Speed2 4 and Portable_Speed2 6 allow the user to enumerate the list of available clock rates. Index 0 is always the slowest available speed, and (return value of Portable_Speed2 4)-1 is always the highest available speed.
To set the CPU speed, see Portable_Speed2 2 or Portable_Speed2 8 (to set the desired ‘slow’ and ‘fast’ speeds), and Portable_Speed (to switch between the configured ‘slow’ and ‘fast’ speeds).