[PATCH] fbcon: Use persistent allocation for cursor blinking
authorDave Jones <davej@redhat.com>
Tue, 3 Oct 2006 08:14:47 +0000 (01:14 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:10 +0000 (08:04 -0700)
commite299dd4d7c5f38a24045e0578049d872b62f21eb
treed8ab3a71e434a9137feb4aeddf5c59f58c8ae591
parent7a45093b7caa9d3d5421274b4ba80fba5da17e19
[PATCH] fbcon: Use persistent allocation for cursor blinking

Every time the console cursor blinks, we do a kmalloc/kfree pair.  This
patch turns that into a single allocation.

This allocation was the most frequent kmalloc I saw on my test box.

[adaplas]
Per Alan's suggestion, move global variables to fbcon's private structure.
This would also avoid resource leaks when fbcon is unloaded.

Signed-off-by: Dave Jones <davej@redhat.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/fbcon.c
drivers/video/console/fbcon.h
drivers/video/console/softcursor.c