summaryrefslogtreecommitdiff
path: root/packages/linux/unslung-kernel
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2006-04-18 04:00:50 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-18 04:00:50 +0000
commitb0ae9c94ed03dbd39744b67750fbea4c750f66bb (patch)
treec13eaa5d1258612ed7f1b8e3c5d99c068bea2796 /packages/linux/unslung-kernel
parentb89bf2a856bba13210a8c9ef4d6d8f5fa67405bb (diff)
unslung-kernel: patch ppp-mppe.c to remove errant floating point computation
Diffstat (limited to 'packages/linux/unslung-kernel')
-rw-r--r--packages/linux/unslung-kernel/ppp_mppe_no_fp_in_kernel.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/linux/unslung-kernel/ppp_mppe_no_fp_in_kernel.patch b/packages/linux/unslung-kernel/ppp_mppe_no_fp_in_kernel.patch
new file mode 100644
index 0000000000..b068a5a8c6
--- /dev/null
+++ b/packages/linux/unslung-kernel/ppp_mppe_no_fp_in_kernel.patch
@@ -0,0 +1,13 @@
+--- linux-2.4.22/drivers/net/ppp_mppe.c~ 2006-04-15 12:23:04.000000000 -0500
++++ linux-2.4.22/drivers/net/ppp_mppe.c 2006-04-17 20:24:39.000000000 -0500
+@@ -507,7 +507,10 @@
+ (state->stats).bytes_out = (state->stats).comp_bytes;
+
+ /* this _SHOULD_ always be 1 */
++#if 0
++ /* the kernel may not do floating point calculations, so don't do this. */
+ (state->stats).ratio = (state->stats).in_count/(state->stats).bytes_out;
++#endif
+
+ *stats = state->stats;
+