summaryrefslogtreecommitdiff
path: root/target/linux/goldfish/patches-2.6.30/0109-Revert-printk-remove-unused-code-from-kernel-print.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-12-18 17:53:53 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-12-18 17:53:53 +0000
commitdb831511d2091907eef52519ebcc47f54cfd6d33 (patch)
tree9f9c7fba156b00e4bc76030988ecf32839f622ce /target/linux/goldfish/patches-2.6.30/0109-Revert-printk-remove-unused-code-from-kernel-print.patch
parent979bc5536dd4960748cc7a96426abdc8ace15131 (diff)
downloadmtk-20170518-db831511d2091907eef52519ebcc47f54cfd6d33.zip
mtk-20170518-db831511d2091907eef52519ebcc47f54cfd6d33.tar.gz
mtk-20170518-db831511d2091907eef52519ebcc47f54cfd6d33.tar.bz2
goldfish: R.I.P.
It is broken and it is not maintained by anyone since long time. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34766
Diffstat (limited to 'target/linux/goldfish/patches-2.6.30/0109-Revert-printk-remove-unused-code-from-kernel-print.patch')
-rw-r--r--target/linux/goldfish/patches-2.6.30/0109-Revert-printk-remove-unused-code-from-kernel-print.patch58
1 files changed, 0 insertions, 58 deletions
diff --git a/target/linux/goldfish/patches-2.6.30/0109-Revert-printk-remove-unused-code-from-kernel-print.patch b/target/linux/goldfish/patches-2.6.30/0109-Revert-printk-remove-unused-code-from-kernel-print.patch
deleted file mode 100644
index 26745a1..0000000
--- a/target/linux/goldfish/patches-2.6.30/0109-Revert-printk-remove-unused-code-from-kernel-print.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From fca2519ebf25db61da132932eb3fffeaa1974f43 Mon Sep 17 00:00:00 2001
-From: =?utf-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= <arve@android.com>
-Date: Thu, 15 Jan 2009 19:07:27 -0800
-Subject: [PATCH 109/134] Revert "printk: remove unused code from kernel/printk.c"
-
-This reverts commit acff181d3574244e651913df77332e897b88bff4.
----
- kernel/printk.c | 39 +++++++++++++++++++++++++++++++++++++++
- 1 files changed, 39 insertions(+), 0 deletions(-)
-
---- a/kernel/printk.c
-+++ b/kernel/printk.c
-@@ -255,6 +255,45 @@ static inline void boot_delay_msec(void)
- #endif
-
- /*
-+ * Return the number of unread characters in the log buffer.
-+ */
-+static int log_buf_get_len(void)
-+{
-+ return logged_chars;
-+}
-+
-+/*
-+ * Copy a range of characters from the log buffer.
-+ */
-+int log_buf_copy(char *dest, int idx, int len)
-+{
-+ int ret, max;
-+ bool took_lock = false;
-+
-+ if (!oops_in_progress) {
-+ spin_lock_irq(&logbuf_lock);
-+ took_lock = true;
-+ }
-+
-+ max = log_buf_get_len();
-+ if (idx < 0 || idx >= max) {
-+ ret = -1;
-+ } else {
-+ if (len > max)
-+ len = max;
-+ ret = len;
-+ idx += (log_end - max);
-+ while (len-- > 0)
-+ dest[len] = LOG_BUF(idx + len);
-+ }
-+
-+ if (took_lock)
-+ spin_unlock_irq(&logbuf_lock);
-+
-+ return ret;
-+}
-+
-+/*
- * Commands to do_syslog:
- *
- * 0 -- Close the log. Currently a NOP.