diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2005-11-28 16:43:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-28 17:42:23 -0500 |
commit | 1a9c3f78a32ddc4ec50f5da2cf2db5db6f442986 (patch) | |
tree | 4f0a03b971bf6ca17ed0ec6db4f42e24fca294dd /drivers/video/console/fbcon_ccw.c | |
parent | 8080f231224ccd3169f39e73fd750ba98d5b98a7 (diff) |
[PATCH] Console rotation fixes
Remove bogus usage of test/set_bit() from fbcon rotation code and just
manipulate the bits directly. This fixes an oops on powerpc among others
and should be faster. Seems to work fine on the G5 here.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/console/fbcon_ccw.c')
-rw-r--r-- | drivers/video/console/fbcon_ccw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/console/fbcon_ccw.c b/drivers/video/console/fbcon_ccw.c index 3afd1eeb1ade..4952b66ae206 100644 --- a/drivers/video/console/fbcon_ccw.c +++ b/drivers/video/console/fbcon_ccw.c | |||
@@ -34,7 +34,7 @@ static inline void ccw_update_attr(u8 *dst, u8 *src, int attribute, | |||
34 | msk <<= (8 - mod); | 34 | msk <<= (8 - mod); |
35 | 35 | ||
36 | if (offset > mod) | 36 | if (offset > mod) |
37 | set_bit(FBCON_BIT(7), (void *)&msk1); | 37 | msk1 |= 0x01; |
38 | 38 | ||
39 | for (i = 0; i < vc->vc_font.width; i++) { | 39 | for (i = 0; i < vc->vc_font.width; i++) { |
40 | for (j = 0; j < width; j++) { | 40 | for (j = 0; j < width; j++) { |