mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 22:15:40 +07:00
staging: lustre: lnet: use BIT macro in LNet selftest
Some of the defines for lnet selftest can use the BIT macros. Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a7e1894c6d
commit
4c93630fa5
@ -46,9 +46,9 @@
|
||||
* to cover a time period of 1024 seconds into the future before wrapping.
|
||||
*/
|
||||
#define STTIMER_MINPOLL 3 /* log2 min poll interval (8 s) */
|
||||
#define STTIMER_SLOTTIME (1 << STTIMER_MINPOLL)
|
||||
#define STTIMER_SLOTTIME BIT(STTIMER_MINPOLL)
|
||||
#define STTIMER_SLOTTIMEMASK (~(STTIMER_SLOTTIME - 1))
|
||||
#define STTIMER_NSLOTS (1 << 7)
|
||||
#define STTIMER_NSLOTS BIT(7)
|
||||
#define STTIMER_SLOT(t) (&stt_data.stt_hash[(((t) >> STTIMER_MINPOLL) & \
|
||||
(STTIMER_NSLOTS - 1))])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user