Skip to content

Commit 4402160

Browse files
TinyWindzzrafaeljw
authored andcommitted
cpuidle: use BIT() for idle state flags and remove CPUIDLE_DRIVER_FLAGS_MASK
Use BIT() macro to do a small tidy-up. CPUIDLE_DRIVER_FLAGS_MASK is not used, so remove it. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 3b73576 commit 4402160

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

include/linux/cpuidle.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ struct cpuidle_state {
6969

7070
/* Idle State Flags */
7171
#define CPUIDLE_FLAG_NONE (0x00)
72-
#define CPUIDLE_FLAG_POLLING (0x01) /* polling state */
73-
#define CPUIDLE_FLAG_COUPLED (0x02) /* state applies to multiple cpus */
74-
#define CPUIDLE_FLAG_TIMER_STOP (0x04) /* timer is stopped on this state */
75-
76-
#define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000)
72+
#define CPUIDLE_FLAG_POLLING BIT(0) /* polling state */
73+
#define CPUIDLE_FLAG_COUPLED BIT(1) /* state applies to multiple cpus */
74+
#define CPUIDLE_FLAG_TIMER_STOP BIT(2) /* timer is stopped on this state */
7775

7876
struct cpuidle_device_kobj;
7977
struct cpuidle_state_kobj;

0 commit comments

Comments
 (0)