Commit 4d8937d0 authored by Ralf Baechle's avatar Ralf Baechle Committed by David S. Miller

[NETROM]: Eleminate HZ from NET/ROM kernel interfaces

Convert all NET/ROM sysctl time values from jiffies to ms as units.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e1fdb5b3
...@@ -42,11 +42,11 @@ enum { ...@@ -42,11 +42,11 @@ enum {
#define NR_COND_PEER_RX_BUSY 0x04 #define NR_COND_PEER_RX_BUSY 0x04
#define NR_COND_OWN_RX_BUSY 0x08 #define NR_COND_OWN_RX_BUSY 0x08
#define NR_DEFAULT_T1 (120 * HZ) /* Outstanding frames - 120 seconds */ #define NR_DEFAULT_T1 120000 /* Outstanding frames - 120 seconds */
#define NR_DEFAULT_T2 (5 * HZ) /* Response delay - 5 seconds */ #define NR_DEFAULT_T2 5000 /* Response delay - 5 seconds */
#define NR_DEFAULT_N2 3 /* Number of Retries - 3 */ #define NR_DEFAULT_N2 3 /* Number of Retries - 3 */
#define NR_DEFAULT_T4 (180 * HZ) /* Busy Delay - 180 seconds */ #define NR_DEFAULT_T4 180000 /* Busy Delay - 180 seconds */
#define NR_DEFAULT_IDLE (0 * 60 * HZ) /* No Activity Timeout - none */ #define NR_DEFAULT_IDLE 0 /* No Activity Timeout - none */
#define NR_DEFAULT_WINDOW 4 /* Default Window Size - 4 */ #define NR_DEFAULT_WINDOW 4 /* Default Window Size - 4 */
#define NR_DEFAULT_OBS 6 /* Default Obsolescence Count - 6 */ #define NR_DEFAULT_OBS 6 /* Default Obsolescence Count - 6 */
#define NR_DEFAULT_QUAL 10 /* Default Neighbour Quality - 10 */ #define NR_DEFAULT_QUAL 10 /* Default Neighbour Quality - 10 */
......
...@@ -425,11 +425,16 @@ static int nr_create(struct socket *sock, int protocol) ...@@ -425,11 +425,16 @@ static int nr_create(struct socket *sock, int protocol)
nr_init_timers(sk); nr_init_timers(sk);
nr->t1 = sysctl_netrom_transport_timeout; nr->t1 =
nr->t2 = sysctl_netrom_transport_acknowledge_delay; msecs_to_jiffies(sysctl_netrom_transport_timeout);
nr->n2 = sysctl_netrom_transport_maximum_tries; nr->t2 =
nr->t4 = sysctl_netrom_transport_busy_delay; msecs_to_jiffies(sysctl_netrom_transport_acknowledge_delay);
nr->idle = sysctl_netrom_transport_no_activity_timeout; nr->n2 =
msecs_to_jiffies(sysctl_netrom_transport_maximum_tries);
nr->t4 =
msecs_to_jiffies(sysctl_netrom_transport_busy_delay);
nr->idle =
msecs_to_jiffies(sysctl_netrom_transport_no_activity_timeout);
nr->window = sysctl_netrom_transport_requested_window_size; nr->window = sysctl_netrom_transport_requested_window_size;
nr->bpqext = 1; nr->bpqext = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment