mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
rtc-cmos: display HPET emulation mode
For the "cmos" RTC, have /proc/driver/rtc say whether HPET based IRQ emulation is in effect. Given the problems we've had with this particular hardware maldesign (and the fact that most BIOS code seems not to provide the IRQ routing needed to use the saner HPET modes), this should help troubleshooting. Signed-off-by: David Brownell <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4185108c77
commit
c8626a1d72
1 changed files with 2 additions and 0 deletions
|
|
@ -388,6 +388,7 @@ static int cmos_procfs(struct device *dev, struct seq_file *seq)
|
|||
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"
|
||||
|
|
@ -395,6 +396,7 @@ static int cmos_procfs(struct device *dev, struct seq_file *seq)
|
|||
"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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue