linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.5.75 6PACK
@ 2003-07-26  6:10 Hans-Joachim Hetscher
  2003-07-26  6:46 ` Con Kolivas
  0 siblings, 1 reply; 2+ messages in thread
From: Hans-Joachim Hetscher @ 2003-07-26  6:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-hams

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

the Hamradio 6pack driver wasn't modified to work with the 1000 HZ
internal kernel timebase.

So here the patch to solve this little problem

vy 73 de Hans-Joachim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/IhtT3VQwVx4wircRAk2FAJ99nrAIqEQUrHCZk1DPRLcKRulvlwCfbtbH
UOa/Qp704Ac6UXudrfoOEl8=
=eL+I
-----END PGP SIGNATURE-----

[-- Attachment #2: 6pack.diff --]
[-- Type: text/plain, Size: 754 bytes --]

--- linux/drivers/net/hamradio/6pack.c.ori	2003-07-19 08:00:05.000000000 +0200
+++ linux/drivers/net/hamradio/6pack.c	2003-07-25 07:35:27.000000000 +0200
@@ -67,11 +67,11 @@
 #define SIXP_DAMA_OFF		0
 
 /* default level 2 parameters */
-#define SIXP_TXDELAY			25	/* in 10 ms */
+#define SIXP_TXDELAY			0.25*HZ	/* in 1 s */
 #define SIXP_PERSIST			50	/* in 256ths */
-#define SIXP_SLOTTIME			10	/* in 10 ms */
-#define SIXP_INIT_RESYNC_TIMEOUT	150	/* in 10 ms */
-#define SIXP_RESYNC_TIMEOUT		500	/* in 10 ms */
+#define SIXP_SLOTTIME			0.1*HZ	/* in 1 s */
+#define SIXP_INIT_RESYNC_TIMEOUT	1.5*HZ	/* in 1 s */
+#define SIXP_RESYNC_TIMEOUT		5*HZ	/* in 1 s */
 
 /* 6pack configuration. */
 #define SIXP_NRUNIT			31      /* MAX number of 6pack channels */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.5.75 6PACK
  2003-07-26  6:10 [PATCH] 2.5.75 6PACK Hans-Joachim Hetscher
@ 2003-07-26  6:46 ` Con Kolivas
  0 siblings, 0 replies; 2+ messages in thread
From: Con Kolivas @ 2003-07-26  6:46 UTC (permalink / raw)
  To: hajohe, Hans-Joachim Hetscher, linux-kernel; +Cc: linux-hams

integer space should use:

On Sat, 26 Jul 2003 16:10, Hans-Joachim Hetscher wrote:
+#define SIXP_TXDELAY                   0.25*HZ /* in 1 s */

HZ/4

+#define SIXP_SLOTTIME                  0.1*HZ  /* in 1 s */

HZ/10

+#define SIXP_INIT_RESYNC_TIMEOUT       1.5*HZ  /* in 1 s */

HZ*3/2

no?

Con


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-26  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-26  6:10 [PATCH] 2.5.75 6PACK Hans-Joachim Hetscher
2003-07-26  6:46 ` Con Kolivas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).