diff options
Diffstat (limited to 'drivers/rtc/rtc-cmos.c')
-rw-r--r-- | drivers/rtc/rtc-cmos.c | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 5b2e76159b41..87647f459198 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c | |||
@@ -459,23 +459,25 @@ static int cmos_procfs(struct device *dev, struct seq_file *seq) | |||
459 | /* NOTE: at least ICH6 reports battery status using a different | 459 | /* NOTE: at least ICH6 reports battery status using a different |
460 | * (non-RTC) bit; and SQWE is ignored on many current systems. | 460 | * (non-RTC) bit; and SQWE is ignored on many current systems. |
461 | */ | 461 | */ |
462 | return seq_printf(seq, | 462 | seq_printf(seq, |
463 | "periodic_IRQ\t: %s\n" | 463 | "periodic_IRQ\t: %s\n" |
464 | "update_IRQ\t: %s\n" | 464 | "update_IRQ\t: %s\n" |
465 | "HPET_emulated\t: %s\n" | 465 | "HPET_emulated\t: %s\n" |
466 | // "square_wave\t: %s\n" | 466 | // "square_wave\t: %s\n" |
467 | "BCD\t\t: %s\n" | 467 | "BCD\t\t: %s\n" |
468 | "DST_enable\t: %s\n" | 468 | "DST_enable\t: %s\n" |
469 | "periodic_freq\t: %d\n" | 469 | "periodic_freq\t: %d\n" |
470 | "batt_status\t: %s\n", | 470 | "batt_status\t: %s\n", |
471 | (rtc_control & RTC_PIE) ? "yes" : "no", | 471 | (rtc_control & RTC_PIE) ? "yes" : "no", |
472 | (rtc_control & RTC_UIE) ? "yes" : "no", | 472 | (rtc_control & RTC_UIE) ? "yes" : "no", |
473 | is_hpet_enabled() ? "yes" : "no", | 473 | is_hpet_enabled() ? "yes" : "no", |
474 | // (rtc_control & RTC_SQWE) ? "yes" : "no", | 474 | // (rtc_control & RTC_SQWE) ? "yes" : "no", |
475 | (rtc_control & RTC_DM_BINARY) ? "no" : "yes", | 475 | (rtc_control & RTC_DM_BINARY) ? "no" : "yes", |
476 | (rtc_control & RTC_DST_EN) ? "yes" : "no", | 476 | (rtc_control & RTC_DST_EN) ? "yes" : "no", |
477 | cmos->rtc->irq_freq, | 477 | cmos->rtc->irq_freq, |
478 | (valid & RTC_VRT) ? "okay" : "dead"); | 478 | (valid & RTC_VRT) ? "okay" : "dead"); |
479 | |||
480 | return 0; | ||
479 | } | 481 | } |
480 | 482 | ||
481 | #else | 483 | #else |