diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2012-03-07 17:02:07 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-03-09 10:35:11 +1100 |
commit | 8ee3e0d69623cd74f626cbd2b9f237ad45519e3f (patch) | |
tree | 9450b0c397afa441ed85c3331cf2e614d3bc729d /arch/powerpc/platforms/iseries/hvlog.c | |
parent | 2d4b971287cbce16585acda4b76308faa8da0950 (diff) | |
download | lwn-8ee3e0d69623cd74f626cbd2b9f237ad45519e3f.tar.gz lwn-8ee3e0d69623cd74f626cbd2b9f237ad45519e3f.zip |
powerpc: Remove the main legacy iSerie platform code
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/iseries/hvlog.c')
-rw-r--r-- | arch/powerpc/platforms/iseries/hvlog.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/powerpc/platforms/iseries/hvlog.c b/arch/powerpc/platforms/iseries/hvlog.c deleted file mode 100644 index f476d71194fa..000000000000 --- a/arch/powerpc/platforms/iseries/hvlog.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2001 Mike Corrigan IBM Corporation - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - */ - -#include <asm/page.h> -#include <asm/abs_addr.h> -#include <asm/iseries/hv_call.h> -#include <asm/iseries/hv_call_sc.h> -#include <asm/iseries/hv_types.h> - - -void HvCall_writeLogBuffer(const void *buffer, u64 len) -{ - struct HvLpBufferList hv_buf; - u64 left_this_page; - u64 cur = virt_to_abs(buffer); - - while (len) { - hv_buf.addr = cur; - left_this_page = ((cur & HW_PAGE_MASK) + HW_PAGE_SIZE) - cur; - if (left_this_page > len) - left_this_page = len; - hv_buf.len = left_this_page; - len -= left_this_page; - HvCall2(HvCallBaseWriteLogBuffer, - virt_to_abs(&hv_buf), - left_this_page); - cur = (cur & HW_PAGE_MASK) + HW_PAGE_SIZE; - } -} |