From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- ANDROID_3.4.5/include/linux/sunrpc/timer.h | 49 ------------------------------ 1 file changed, 49 deletions(-) delete mode 100644 ANDROID_3.4.5/include/linux/sunrpc/timer.h (limited to 'ANDROID_3.4.5/include/linux/sunrpc/timer.h') diff --git a/ANDROID_3.4.5/include/linux/sunrpc/timer.h b/ANDROID_3.4.5/include/linux/sunrpc/timer.h deleted file mode 100644 index 697d6e69..00000000 --- a/ANDROID_3.4.5/include/linux/sunrpc/timer.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * linux/include/linux/sunrpc/timer.h - * - * Declarations for the RPC transport timer. - * - * Copyright (C) 2002 Trond Myklebust - */ - -#ifndef _LINUX_SUNRPC_TIMER_H -#define _LINUX_SUNRPC_TIMER_H - -#include - -struct rpc_rtt { - unsigned long timeo; /* default timeout value */ - unsigned long srtt[5]; /* smoothed round trip time << 3 */ - unsigned long sdrtt[5]; /* smoothed medium deviation of RTT */ - int ntimeouts[5]; /* Number of timeouts for the last request */ -}; - - -extern void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo); -extern void rpc_update_rtt(struct rpc_rtt *rt, unsigned timer, long m); -extern unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer); - -static inline void rpc_set_timeo(struct rpc_rtt *rt, int timer, int ntimeo) -{ - int *t; - if (!timer) - return; - t = &rt->ntimeouts[timer-1]; - if (ntimeo < *t) { - if (*t > 0) - (*t)--; - } else { - if (ntimeo > 8) - ntimeo = 8; - *t = ntimeo; - } -} - -static inline int rpc_ntimeo(struct rpc_rtt *rt, int timer) -{ - if (!timer) - return 0; - return rt->ntimeouts[timer-1]; -} - -#endif /* _LINUX_SUNRPC_TIMER_H */ -- cgit