提交 0188e603 编写于 作者: J Jesper Nilsson 提交者: Linus Torvalds

cris build fixes: fixes in arch/cris/kernel/time.c

- Remove debug print.
- Change #if to #ifdef to avoid compile time warning if CONFIG_PROFILING
  isn't set.
- Number of parameters to profile_tick has changed, drop the regs parameter.
Signed-off-by: NJesper Nilsson <jesper.nilsson@axis.com>
Acked-by: NMikael Starvik <starvik@axis.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 7b275523
...@@ -171,10 +171,6 @@ get_cmos_time(void) ...@@ -171,10 +171,6 @@ get_cmos_time(void)
mon = CMOS_READ(RTC_MONTH); mon = CMOS_READ(RTC_MONTH);
year = CMOS_READ(RTC_YEAR); year = CMOS_READ(RTC_YEAR);
printk(KERN_DEBUG
"rtc: sec 0x%x min 0x%x hour 0x%x day 0x%x mon 0x%x year 0x%x\n",
sec, min, hour, day, mon, year);
BCD_TO_BIN(sec); BCD_TO_BIN(sec);
BCD_TO_BIN(min); BCD_TO_BIN(min);
BCD_TO_BIN(hour); BCD_TO_BIN(hour);
...@@ -207,12 +203,12 @@ void ...@@ -207,12 +203,12 @@ void
cris_do_profile(struct pt_regs* regs) cris_do_profile(struct pt_regs* regs)
{ {
#if CONFIG_SYSTEM_PROFILER #ifdef CONFIG_SYSTEM_PROFILER
cris_profile_sample(regs); cris_profile_sample(regs);
#endif #endif
#if CONFIG_PROFILING #ifdef CONFIG_PROFILING
profile_tick(CPU_PROFILING, regs); profile_tick(CPU_PROFILING);
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册