Use 64 bit type for rqb_word_t in n64 kernel.
Reviewed by: imp Approved by: rrs
This commit is contained in:
parent
1f13150705
commit
35a69e02a4
@ -30,11 +30,16 @@
|
||||
#ifndef _MACHINE_RUNQ_H_
|
||||
#define _MACHINE_RUNQ_H_
|
||||
|
||||
#if defined(__mips_n64)
|
||||
#define RQB_LEN (1) /* Number of priority status words. */
|
||||
#define RQB_L2BPW (6) /* Log2(sizeof(rqb_word_t) * NBBY)). */
|
||||
#else
|
||||
#define RQB_LEN (2) /* Number of priority status words. */
|
||||
#define RQB_L2BPW (5) /* Log2(sizeof(rqb_word_t) * NBBY)). */
|
||||
#endif
|
||||
#define RQB_BPW (1<<RQB_L2BPW) /* Bits in an rqb_word_t. */
|
||||
|
||||
#define RQB_BIT(pri) (1 << ((pri) & (RQB_BPW - 1)))
|
||||
#define RQB_BIT(pri) (1ul << ((pri) & (RQB_BPW - 1)))
|
||||
#define RQB_WORD(pri) ((pri) >> RQB_L2BPW)
|
||||
|
||||
#define RQB_FFS(word) (ffs(word) - 1)
|
||||
@ -42,6 +47,10 @@
|
||||
/*
|
||||
* Type of run queue status word.
|
||||
*/
|
||||
typedef u_int32_t rqb_word_t;
|
||||
#if defined(__mips_n64)
|
||||
typedef u_int64_t rqb_word_t;
|
||||
#else
|
||||
typedef u_int32_t rqb_word_t;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user