mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
blk-throttle: don't call xchg on bool
xchg does not work portably with smaller than 32bit types. Signed-off-by: Andreas Schwab <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
ee3dea3549
commit
6f03793770
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ struct throtl_grp {
|
|||
unsigned long slice_end[2];
|
||||
|
||||
/* Some throttle limits got updated for the group */
|
||||
bool limits_changed;
|
||||
int limits_changed;
|
||||
};
|
||||
|
||||
struct throtl_data
|
||||
|
|
@ -102,7 +102,7 @@ struct throtl_data
|
|||
/* Work for dispatching throttled bios */
|
||||
struct delayed_work throtl_work;
|
||||
|
||||
bool limits_changed;
|
||||
int limits_changed;
|
||||
};
|
||||
|
||||
enum tg_state_flags {
|
||||
|
|
|
|||
Loading…
Reference in a new issue