mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 04:15:02 +00:00
cpufreq: interactive: fix show_target_loads and show_above_hispeed_delay
Remove a trailing whitespace from target_loads and above_hispeed_delay. Problem happens when user-space program tried to restore parameters that saved before changing parameters. In this case was returned error(EINVAL). Change-Id: I5a74e3824602cd6f2b74651adda5ec1b627e61e9 Signed-off-by: Minsung Kim <ms925.kim@samsung.com> Git-commit: cf0fad49d17cb8273ce555dd5b7afab67d7923bf Git-repo: https://android.googlesource.com/kernel/common/ Signed-off-by: Dilip Gudlur <dgudlur@codeaurora.org>
This commit is contained in:
parent
76ccdc748c
commit
01ae0541f0
1 changed files with 2 additions and 2 deletions
|
@ -742,7 +742,7 @@ static ssize_t show_target_loads(
|
|||
ret += sprintf(buf + ret, "%u%s", target_loads[i],
|
||||
i & 0x1 ? ":" : " ");
|
||||
|
||||
ret += sprintf(buf + ret, "\n");
|
||||
ret += sprintf(buf + --ret, "\n");
|
||||
spin_unlock_irqrestore(&target_loads_lock, flags);
|
||||
return ret;
|
||||
}
|
||||
|
@ -785,7 +785,7 @@ static ssize_t show_above_hispeed_delay(
|
|||
ret += sprintf(buf + ret, "%u%s", above_hispeed_delay[i],
|
||||
i & 0x1 ? ":" : " ");
|
||||
|
||||
ret += sprintf(buf + ret, "\n");
|
||||
ret += sprintf(buf + --ret, "\n");
|
||||
spin_unlock_irqrestore(&above_hispeed_delay_lock, flags);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue