From 557aba52655dec84a73bdbc19c59b62ec916159d Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 6 Apr 2011 15:54:28 -0500 Subject: Revert "Temporary dcbf on printk for VBU." HW team decided it wouldn't help because dcbf is a no-op out of L2 this mode. Keeping the commit in the repo in case we want to reference it later. This reverts commit 7c7a61ad865942fd1e39f4b15d020d9e0454613e. --- src/kernel/console.C | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/console.C b/src/kernel/console.C index 373d67c4f..6912b8450 100644 --- a/src/kernel/console.C +++ b/src/kernel/console.C @@ -3,7 +3,6 @@ #include #include #include -#include char kernel_printk_buffer[Console::BUFFER_SIZE]; @@ -20,10 +19,7 @@ int Console::putc(int c) } else if (BUFFER_SIZE > iv_pos) { - size_t pos = __sync_fetch_and_add(&iv_pos, 1); - iv_buffer[pos] = c; - dcbf(&iv_buffer[pos]); // TODO: This is temporary for VBU since we - // can't read the L3 if data is in L2. + iv_buffer[__sync_fetch_and_add(&iv_pos, 1)] = c; } return c; } -- cgit v1.2.1