summaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-13 21:47:08 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:53:52 -0800
commitd26f398400311982d2433debae85746c348b7d58 (patch)
treecd1fd0dfbd5a51428dc92ea3dbbb864205a27fa8 /include/net/xfrm.h
parent0ebea8ef3559b545c37b016f44e84c3b33e47c39 (diff)
downloadkernel-crypto-d26f398400311982d2433debae85746c348b7d58.tar.gz
kernel-crypto-d26f398400311982d2433debae85746c348b7d58.tar.xz
kernel-crypto-d26f398400311982d2433debae85746c348b7d58.zip
[IPSEC]: Make x->lastused an unsigned long
Currently x->lastused is u64 which means that it cannot be read/written atomically on all architectures. David Miller observed that the value stored in it is only an unsigned long which is always atomic. So based on his suggestion this patch changes the internal representation from u64 to unsigned long while the user-interface still refers to it as u64. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r--include/net/xfrm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 329de412c0b..311bbd113aa 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -183,7 +183,7 @@ struct xfrm_state
struct timer_list timer;
/* Last used time */
- u64 lastused;
+ unsigned long lastused;
/* Reference to data common to all the instances of this
* transformer. */