use get_cpu_frequency instead of the static number 533
This commit is contained in:
parent
751dda8f1e
commit
41dc03235a
1 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ int icc_halt(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#define ROUNDS 100000
|
||||
#define ROUNDS 1000
|
||||
#define CORE_A 0 // sender
|
||||
#define CORE_B 1 // receiver
|
||||
|
||||
|
@ -425,7 +425,7 @@ int icc_mail_ping_irq(void)
|
|||
|
||||
kprintf( "timer = %d\n", timer );
|
||||
kprintf( "mail_pingpong needs in average %d nsec (%d ticks)!\n",
|
||||
timer*1000/(2*ROUNDS*533), timer/(2*ROUNDS) );
|
||||
timer*1000/(2*ROUNDS*get_cpu_frequency()), timer/(2*ROUNDS) );
|
||||
|
||||
|
||||
irq_nested_enable(flags);
|
||||
|
|
Loading…
Add table
Reference in a new issue