Skip to content

Commit

Permalink
[CPUFREQ] Use swap() in longhaul.c
Browse files Browse the repository at this point in the history
Remove hand-coded implementation of swap()

Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Dave Jones committed Feb 25, 2009
1 parent 3a58df3 commit 9142022
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions arch/x86/kernel/cpu/cpufreq/longhaul.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 9142022

Please sign in to comment.