X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fx86_64%2Fmm%2Fextable.c;h=79ac6e7100af32675ee00c1177a622e9af583548;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=7e039db623a036a187012c120f2dc9cee34708da;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/arch/x86_64/mm/extable.c b/arch/x86_64/mm/extable.c index 7e039db62..79ac6e710 100644 --- a/arch/x86_64/mm/extable.c +++ b/arch/x86_64/mm/extable.c @@ -2,7 +2,6 @@ * linux/arch/x86_64/mm/extable.c */ -#include #include #include #include @@ -33,26 +32,3 @@ search_extable(const struct exception_table_entry *first, } return NULL; } - -/* When an exception handler is in an non standard section (like __init) - the fixup table can end up unordered. Fix that here. */ -void sort_extable(struct exception_table_entry *start, - struct exception_table_entry *finish) -{ - struct exception_table_entry *e; - int change; - - /* The input is near completely presorted, which makes bubble sort the - best (and simplest) sort algorithm. */ - do { - change = 0; - for (e = start+1; e < finish; e++) { - if (e->insn < e[-1].insn) { - struct exception_table_entry tmp = e[-1]; - e[-1] = e[0]; - e[0] = tmp; - change = 1; - } - } - } while (change != 0); -}