Skip to content

Commit

Permalink
Fixed issue 8: Recalibrate slow cores to 3MHz before release of GPU code
Browse files Browse the repository at this point in the history
Change-Id: I776debc560107b9d3e8a8e98349f6de11bf35ed5
  • Loading branch information
hoglet67 committed Oct 21, 2016
1 parent 1e96e91 commit 5b63223
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/copro-65tubeasm.S
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,15 @@ Event_Handler_Single_Core_Slow:

noirq2:

mov r0, #250
#if defined(RPIZERO)
mov r0, #0x15C // 0x15C gives 3.00MHz average on a Pi Zero at 1000/400
#elif defined(RPI2)
mov r0, #0x388 // 0x388 gives 3.01MHz average on a Pi 2 at 900/350
#elif defined(RPI3)
mov r0, #0x3F0 // 0x3F0 gives 3.00MHz average on a Pi 3 at 1000/400
#else
mov r0, #0x134 // 0x134 gives 3.02MHz average on a Pi One at 900/350
#endif
waste_time:
subs r0, r0, #1
bne waste_time
Expand Down

0 comments on commit 5b63223

Please sign in to comment.