提交 da27abb7 编写于 作者: M Mike Frysinger 提交者: Bryan Wu

Blackfin arch: Javier Herrer writes: fix building when icache and dcache is disabled

Signed-off-by: NMike Frysinger <michael.frysinger@analog.com>
Signed-off-by: NBryan Wu <bryan.wu@analog.com>
上级 55b70a03
...@@ -501,7 +501,7 @@ EXPORT_SYMBOL(sclk_to_usecs); ...@@ -501,7 +501,7 @@ EXPORT_SYMBOL(sclk_to_usecs);
unsigned long usecs_to_sclk(unsigned long 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); EXPORT_SYMBOL(usecs_to_sclk);
...@@ -589,7 +589,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) ...@@ -589,7 +589,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
#elif defined CONFIG_BFIN_WT #elif defined CONFIG_BFIN_WT
"wt" "wt"
#endif #endif
, 0); "", 0);
seq_printf(m, "%s\n", cache); seq_printf(m, "%s\n", cache);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册