summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-05-07 22:02:50 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-05-07 22:02:50 +0000
commitdbcb02832fa90ea7472f12783bbcaa2e2924ef43 (patch)
treecdf2b215aad9ce76a282d45e5acacd6d57935334
parent4c4ae04da9ab8d97658b16820fdb901ab9b45911 (diff)
downloadrockbox-dbcb02832fa90ea7472f12783bbcaa2e2924ef43.tar.gz
rockbox-dbcb02832fa90ea7472f12783bbcaa2e2924ef43.zip
Use 'HZ' and remove 'volatile' as suggested by kugel.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25893 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/test_mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/test_mem.c b/apps/plugins/test_mem.c
index 2ad0e04436..f1c890e85c 100644
--- a/apps/plugins/test_mem.c
+++ b/apps/plugins/test_mem.c
@@ -27,8 +27,8 @@ PLUGIN_HEADER
27#define LOOP_REPEAT 8 27#define LOOP_REPEAT 8
28static volatile int buf[BUF_SIZE]; 28static volatile int buf[BUF_SIZE];
29 29
30/* (Byte per loop * loops * 100 ticks per s / ticks)>>10 = KB per s */ 30/* (Byte per loop * loops * ticks per s / ticks)>>10 = KB per s */
31#define KB_PER_SEC(delta) (((BUF_SIZE*sizeof(buf[0])*LOOP_REPEAT*100)/delta) >> 10) 31#define KB_PER_SEC(delta) (((BUF_SIZE*sizeof(buf[0])*LOOP_REPEAT*HZ)/delta) >> 10)
32 32
33enum plugin_status plugin_start(const void* parameter) 33enum plugin_status plugin_start(const void* parameter)
34{ 34{
@@ -44,7 +44,7 @@ enum plugin_status plugin_start(const void* parameter)
44 { 44 {
45 unsigned i, j; 45 unsigned i, j;
46 int line = 0; 46 int line = 0;
47 volatile int x; 47 int x;
48 int delta; 48 int delta;
49 last_tick = *rb->current_tick; 49 last_tick = *rb->current_tick;
50 50