projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: hisilicon/sec2 - Use atomics instead of __sync
[platform/kernel/linux-rpi.git]
/
drivers
/
crypto
/
hisilicon
/
sec2
/
sec.h
diff --git
a/drivers/crypto/hisilicon/sec2/sec.h
b/drivers/crypto/hisilicon/sec2/sec.h
index
26754d0
..
b846d73
100644
(file)
--- a/
drivers/crypto/hisilicon/sec2/sec.h
+++ b/
drivers/crypto/hisilicon/sec2/sec.h
@@
-40,7
+40,7
@@
struct sec_req {
int req_id;
/* Status of the SEC request */
-
in
t fake_busy;
+
atomic_
t fake_busy;
};
/**
@@
-132,8
+132,8
@@
struct sec_debug_file {
};
struct sec_dfx {
-
u64
send_cnt;
-
u64
recv_cnt;
+
atomic64_t
send_cnt;
+
atomic64_t
recv_cnt;
};
struct sec_debug {