diff options
author | Werner Almesberger <werner@openmoko.org> | 2009-01-20 14:43:39 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-01-20 14:43:39 +0000 |
commit | f1ea149e0160b091f145fd6025bc79607491fc85 (patch) | |
tree | 9bddc6bbad05332895cfacaf8128c726a0d42a00 /arch/sh/boot/Makefile | |
parent | a93052a93c079b3a12041b2dd2e67550fe1ff3fa (diff) |
RFC: don't aggravate kernel panics
When in a kernel panic, we try to turn on the backlight. Because
of the panic, preempt is disabled at that time. Unfortunately,
operating the backlight requires access to I2C, and I2C likes to
sleep.
All this results in the kernel unleashing a nearly endless flood
of complaints complete with stack traces, etc., which often
obscures the real issue.
This patch is one way to improve the situation: it just skips
touching the backlight if we're in an atomic context. However, it
isn't perfect: it would be desirable if the backlight did get
turned on also on a panic. To do so, we would need to use I2C in
a way that doesn't sleep.
So I wonder if this is good enough or if someone has any plans to
make a better solution ?
Signed-off-by: Werner Almesberger <werner@openmoko.org>
Diffstat (limited to 'arch/sh/boot/Makefile')
0 files changed, 0 insertions, 0 deletions