Skip to content

Commit

Permalink
Blackfin arch: Javier Herrer writes: fix building when icache and dca…
Browse files Browse the repository at this point in the history
…che is disabled

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Oct 22, 2007
1 parent 55b70a0 commit da27abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ EXPORT_SYMBOL(sclk_to_usecs);

unsigned long usecs_to_sclk(unsigned long usecs)
{
return get_sclk() / (USEC_PER_SEC * (u64)usecs);
return (get_sclk() * (u64)usecs) / USEC_PER_SEC;
}
EXPORT_SYMBOL(usecs_to_sclk);

Expand Down Expand Up @@ -589,7 +589,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
#elif defined CONFIG_BFIN_WT
"wt"
#endif
, 0);
"", 0);

seq_printf(m, "%s\n", cache);

Expand Down

0 comments on commit da27abb

Please sign in to comment.