mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[BLOCK] elevator: Make elevator=as work again for anticipatory
Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
parent
5a22579137
commit
752a3b7963
1 changed files with 7 additions and 0 deletions
|
@ -149,6 +149,13 @@ static void elevator_setup_default(void)
|
|||
if (!chosen_elevator[0])
|
||||
strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED);
|
||||
|
||||
/*
|
||||
* Be backwards-compatible with previous kernels, so users
|
||||
* won't get the wrong elevator.
|
||||
*/
|
||||
if (!strcmp(chosen_elevator, "as"))
|
||||
strcpy(chosen_elevator, "anticipatory");
|
||||
|
||||
/*
|
||||
* If the given scheduler is not available, fall back to no-op.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue