Removed unnecessary and stupid code - the doubled chain allocation also caused
a page fault during startup, because the chain memory is B_NO_LOCK. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14043 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -945,13 +945,6 @@ cbuf_init(void)
|
||||
cbuf *buffer;
|
||||
int i;
|
||||
|
||||
/*
|
||||
sFreeBufferList = NULL;
|
||||
sFreeBufferNoBlockList = NULL;
|
||||
sNoBlockSpinlock = 0;
|
||||
sLowlevelSpinlock = 0;
|
||||
*/
|
||||
|
||||
// add the debug command
|
||||
add_debugger_command("cbuf_freelist", &dbg_dump_cbuf_freelists, "Dumps the cbuf free lists");
|
||||
|
||||
@@ -980,15 +973,5 @@ cbuf_init(void)
|
||||
for (i = 0; i < CBUF_BITMAP_SIZE / 8; i++)
|
||||
sBitmap[i] = 0;
|
||||
|
||||
buffer = allocate_cbuf_mem(ALLOCATE_CHUNK);
|
||||
if (buffer == NULL)
|
||||
return B_NO_MEMORY;
|
||||
cbuf_free_chain_noblock(buffer);
|
||||
|
||||
buffer = allocate_cbuf_mem(ALLOCATE_CHUNK);
|
||||
if (buffer == NULL)
|
||||
return B_NO_MEMORY;
|
||||
cbuf_free_chain(buffer);
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user