mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
[CPUFREQ] Use swap() in longhaul.c
Remove hand-coded implementation of swap() Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
parent
3a58df35a6
commit
91420220d2
1 changed files with 4 additions and 7 deletions
|
@ -511,13 +511,10 @@ static int __init longhaul_get_ranges(void)
|
|||
}
|
||||
}
|
||||
if (min_i != j) {
|
||||
unsigned int temp;
|
||||
temp = longhaul_table[j].frequency;
|
||||
longhaul_table[j].frequency = longhaul_table[min_i].frequency;
|
||||
longhaul_table[min_i].frequency = temp;
|
||||
temp = longhaul_table[j].index;
|
||||
longhaul_table[j].index = longhaul_table[min_i].index;
|
||||
longhaul_table[min_i].index = temp;
|
||||
swap(longhaul_table[j].frequency,
|
||||
longhaul_table[min_i].frequency);
|
||||
swap(longhaul_table[j].index,
|
||||
longhaul_table[min_i].index);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue