diff options
Diffstat (limited to 'drivers/rtc/rtc-cmos.c')
| -rw-r--r-- | drivers/rtc/rtc-cmos.c | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 5b2e76159b41..a82556a0757a 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c | |||
| @@ -28,6 +28,9 @@ | |||
| 28 | * interrupts disabled, holding the global rtc_lock, to exclude those | 28 | * interrupts disabled, holding the global rtc_lock, to exclude those |
| 29 | * other drivers and utilities on correctly configured systems. | 29 | * other drivers and utilities on correctly configured systems. |
| 30 | */ | 30 | */ |
| 31 | |||
| 32 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
| 33 | |||
| 31 | #include <linux/kernel.h> | 34 | #include <linux/kernel.h> |
| 32 | #include <linux/module.h> | 35 | #include <linux/module.h> |
| 33 | #include <linux/init.h> | 36 | #include <linux/init.h> |
| @@ -385,8 +388,7 @@ static bool alarm_disable_quirk; | |||
| 385 | static int __init set_alarm_disable_quirk(const struct dmi_system_id *id) | 388 | static int __init set_alarm_disable_quirk(const struct dmi_system_id *id) |
| 386 | { | 389 | { |
| 387 | alarm_disable_quirk = true; | 390 | alarm_disable_quirk = true; |
| 388 | pr_info("rtc-cmos: BIOS has alarm-disable quirk. "); | 391 | pr_info("BIOS has alarm-disable quirk - RTC alarms disabled\n"); |
| 389 | pr_info("RTC alarms disabled\n"); | ||
| 390 | return 0; | 392 | return 0; |
| 391 | } | 393 | } |
| 392 | 394 | ||
| @@ -459,23 +461,25 @@ static int cmos_procfs(struct device *dev, struct seq_file *seq) | |||
| 459 | /* NOTE: at least ICH6 reports battery status using a different | 461 | /* NOTE: at least ICH6 reports battery status using a different |
| 460 | * (non-RTC) bit; and SQWE is ignored on many current systems. | 462 | * (non-RTC) bit; and SQWE is ignored on many current systems. |
| 461 | */ | 463 | */ |
| 462 | return seq_printf(seq, | 464 | seq_printf(seq, |
| 463 | "periodic_IRQ\t: %s\n" | 465 | "periodic_IRQ\t: %s\n" |
| 464 | "update_IRQ\t: %s\n" | 466 | "update_IRQ\t: %s\n" |
| 465 | "HPET_emulated\t: %s\n" | 467 | "HPET_emulated\t: %s\n" |
| 466 | // "square_wave\t: %s\n" | 468 | // "square_wave\t: %s\n" |
| 467 | "BCD\t\t: %s\n" | 469 | "BCD\t\t: %s\n" |
| 468 | "DST_enable\t: %s\n" | 470 | "DST_enable\t: %s\n" |
| 469 | "periodic_freq\t: %d\n" | 471 | "periodic_freq\t: %d\n" |
| 470 | "batt_status\t: %s\n", | 472 | "batt_status\t: %s\n", |
| 471 | (rtc_control & RTC_PIE) ? "yes" : "no", | 473 | (rtc_control & RTC_PIE) ? "yes" : "no", |
| 472 | (rtc_control & RTC_UIE) ? "yes" : "no", | 474 | (rtc_control & RTC_UIE) ? "yes" : "no", |
| 473 | is_hpet_enabled() ? "yes" : "no", | 475 | is_hpet_enabled() ? "yes" : "no", |
| 474 | // (rtc_control & RTC_SQWE) ? "yes" : "no", | 476 | // (rtc_control & RTC_SQWE) ? "yes" : "no", |
| 475 | (rtc_control & RTC_DM_BINARY) ? "no" : "yes", | 477 | (rtc_control & RTC_DM_BINARY) ? "no" : "yes", |
| 476 | (rtc_control & RTC_DST_EN) ? "yes" : "no", | 478 | (rtc_control & RTC_DST_EN) ? "yes" : "no", |
| 477 | cmos->rtc->irq_freq, | 479 | cmos->rtc->irq_freq, |
| 478 | (valid & RTC_VRT) ? "okay" : "dead"); | 480 | (valid & RTC_VRT) ? "okay" : "dead"); |
| 481 | |||
| 482 | return 0; | ||
| 479 | } | 483 | } |
| 480 | 484 | ||
| 481 | #else | 485 | #else |
