commit | be9b090a87638bda2f552e2241341fe9ced69184 | [log] [tgz] |
---|---|---|
author | Avery Pennarun <apenwarr@gmail.com> | Thu Feb 21 20:29:34 2013 -0500 |
committer | Ke Dong <kedong@google.com> | Mon Apr 22 11:56:53 2013 -0700 |
tree | 709806510f1121313b30f732f46d1b07025c3085 | |
parent | 782ea36fea4d4884b7dd741b77dc1eaa309637eb [diff] |
Hold the lock for longer when copying the kernel dmesg buffer. This function would acquire and release a spinlock for every single byte. If you used a large buffer size like 8MB, this could make the syslog() function take more than a second to copy the data. On our device it was 1.5 seconds; with this change it's reduced to 0.17 seconds. Change-Id: If63befbe18e4fc215f2e89f5c02dce87ea9064f2 Conflicts: kernel/printk.c