[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131227023917.GA3908@udknight>
Date: Fri, 27 Dec 2013 10:39:18 +0800
From: Wang YanQing <udknight@...il.com>
To: tomi.valkeinen@...com
Cc: plagnioj@...osoft.com, airlied@...hat.com,
gregkh@...uxfoundation.org, akpm@...ux-foundation.org,
kamal@...nce.com, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] fbcon: trivial optimization for fbcon_exit
Break out as soon as we find a mapped entry con2fb_map.
Signed-off-by: Wang YanQing <udknight@...il.com>
---
drivers/video/console/fbcon.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index cd8a802..f39931f 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -3547,8 +3547,10 @@ static void fbcon_exit(void)
"no"));
for (j = first_fb_vc; j <= last_fb_vc; j++) {
- if (con2fb_map[j] == i)
+ if (con2fb_map[j] == i) {
mapped = 1;
+ break;
+ }
}
if (mapped) {
--
1.8.3.4.8.g69490f3.dirty
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists