|
@@ -459,23 +459,25 @@ static int cmos_procfs(struct device *dev, struct seq_file *seq)
|
|
|
/* NOTE: at least ICH6 reports battery status using a different
|
|
|
* (non-RTC) bit; and SQWE is ignored on many current systems.
|
|
|
*/
|
|
|
- return seq_printf(seq,
|
|
|
- "periodic_IRQ\t: %s\n"
|
|
|
- "update_IRQ\t: %s\n"
|
|
|
- "HPET_emulated\t: %s\n"
|
|
|
- // "square_wave\t: %s\n"
|
|
|
- "BCD\t\t: %s\n"
|
|
|
- "DST_enable\t: %s\n"
|
|
|
- "periodic_freq\t: %d\n"
|
|
|
- "batt_status\t: %s\n",
|
|
|
- (rtc_control & RTC_PIE) ? "yes" : "no",
|
|
|
- (rtc_control & RTC_UIE) ? "yes" : "no",
|
|
|
- is_hpet_enabled() ? "yes" : "no",
|
|
|
- // (rtc_control & RTC_SQWE) ? "yes" : "no",
|
|
|
- (rtc_control & RTC_DM_BINARY) ? "no" : "yes",
|
|
|
- (rtc_control & RTC_DST_EN) ? "yes" : "no",
|
|
|
- cmos->rtc->irq_freq,
|
|
|
- (valid & RTC_VRT) ? "okay" : "dead");
|
|
|
+ seq_printf(seq,
|
|
|
+ "periodic_IRQ\t: %s\n"
|
|
|
+ "update_IRQ\t: %s\n"
|
|
|
+ "HPET_emulated\t: %s\n"
|
|
|
+ // "square_wave\t: %s\n"
|
|
|
+ "BCD\t\t: %s\n"
|
|
|
+ "DST_enable\t: %s\n"
|
|
|
+ "periodic_freq\t: %d\n"
|
|
|
+ "batt_status\t: %s\n",
|
|
|
+ (rtc_control & RTC_PIE) ? "yes" : "no",
|
|
|
+ (rtc_control & RTC_UIE) ? "yes" : "no",
|
|
|
+ is_hpet_enabled() ? "yes" : "no",
|
|
|
+ // (rtc_control & RTC_SQWE) ? "yes" : "no",
|
|
|
+ (rtc_control & RTC_DM_BINARY) ? "no" : "yes",
|
|
|
+ (rtc_control & RTC_DST_EN) ? "yes" : "no",
|
|
|
+ cmos->rtc->irq_freq,
|
|
|
+ (valid & RTC_VRT) ? "okay" : "dead");
|
|
|
+
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
#else
|