summaryrefslogtreecommitdiffstats
path: root/net/nfs.c
diff options
context:
space:
mode:
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>2012-07-03 22:25:21 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-07-12 14:13:24 -0500
commit48a3e999c86e7e6033133152b07a308def559d46 (patch)
treea6da0711345b1c0b0ad232c57ac8a9b378a990ee /net/nfs.c
parent0878222fed3fafbfd0b1f2e5a6b2da90a81e910d (diff)
downloadtalos-obmc-uboot-48a3e999c86e7e6033133152b07a308def559d46.zip
talos-obmc-uboot-48a3e999c86e7e6033133152b07a308def559d46.tar.gz
net: nfs: make NFS_TIMEOUT configurable
NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to adjust. This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in a board specific config file. Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Diffstat (limited to 'net/nfs.c')
-rw-r--r--net/nfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/nfs.c b/net/nfs.c
index 5b99763..7f2393f 100644
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -31,7 +31,11 @@
#define HASHES_PER_LINE 65 /* Number of "loading" hashes per line */
#define NFS_RETRY_COUNT 30
-#define NFS_TIMEOUT 2000UL
+#ifndef CONFIG_NFS_TIMEOUT
+# define NFS_TIMEOUT 2000UL
+#else
+# define NFS_TIMEOUT CONFIG_NFS_TIMEOUT
+#endif
static int fs_mounted;
static unsigned long rpc_id;
OpenPOWER on IntegriCloud