diff options
author | Tom Rini | 2022-03-11 09:12:05 -0500 |
---|---|---|
committer | Tom Rini | 2022-03-18 12:48:17 -0400 |
commit | eeda762af3be40152cee763bd73658bf7f55270d (patch) | |
tree | cdb613a98f2bc2d4845e2951379c0e0ecd1566cd /net/nfs.c | |
parent | 69c8a817cf4342774bf1ed19838b9d49c933e969 (diff) |
Convert CONFIG_NFS_TIMEOUT to Kconfig
This converts the following to Kconfig:
CONFIG_NFS_TIMEOUT
Cc: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'net/nfs.c')
-rw-r--r-- | net/nfs.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/net/nfs.c b/net/nfs.c index 70d0e08bde9..3c01cebd96f 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -40,11 +40,6 @@ #define HASHES_PER_LINE 65 /* Number of "loading" hashes per line */ #define NFS_RETRY_COUNT 30 -#ifndef CONFIG_NFS_TIMEOUT -# define NFS_TIMEOUT 2000UL -#else -# define NFS_TIMEOUT CONFIG_NFS_TIMEOUT -#endif #define NFS_RPC_ERR 1 #define NFS_RPC_DROP 124 @@ -53,7 +48,7 @@ static int fs_mounted; static unsigned long rpc_id; static int nfs_offset = -1; static int nfs_len; -static ulong nfs_timeout = NFS_TIMEOUT; +static const ulong nfs_timeout = CONFIG_NFS_TIMEOUT; static char dirfh[NFS_FHSIZE]; /* NFSv2 / NFSv3 file handle of directory */ static char filefh[NFS3_FHSIZE]; /* NFSv2 / NFSv3 file handle */ @@ -733,7 +728,7 @@ static void nfs_timeout_handler(void) } else { puts("T "); net_set_timeout_handler(nfs_timeout + - NFS_TIMEOUT * nfs_timeout_count, + nfs_timeout * nfs_timeout_count, nfs_timeout_handler); nfs_send(); } |