• Neil Horman's avatar
    x86: unify appropriate bits from dumpstack_32 and dumpstack_64 · 878719e8
    Neil Horman authored
    Impact: cleanup
    
    As promised, now that dumpstack_32 and dumpstack_64 have so many bits
    in common, we should merge the in-sync bits into a common file, to
    prevent them from diverging again.
    
    This patch removes bits which are common between dumpstack_32.c and
    dumpstack_64.c and places them in a common dumpstack.c which is built
    for both 32 and 64 bit arches.
    Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    Acked-by: default avatarAlexander van Heukelum <heukelum@fastmail.fm>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    
     Makefile       |    2
     arch/x86/kernel/Makefile       |    2
     arch/x86/kernel/Makefile       |    2
     arch/x86/kernel/Makefile       |    2
     arch/x86/kernel/Makefile       |    2
     arch/x86/kernel/Makefile       |    2
     arch/x86/kernel/dumpstack.c    |  319 +++++++++++++++++++++++++++++++++++++++++
     arch/x86/kernel/dumpstack.h    |   39 +++++
     arch/x86/kernel/dumpstack_32.c |  294 -------------------------------------
     arch/x86/kernel/dumpstack_64.c |  285 ------------------------------------
     5 files changed, 363 insertions(+), 576 deletions(-)
    878719e8
dumpstack_32.c 3.21 KB