lkml.org 
[lkml]   [2000]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch-2.4.0-test9] trivial optimization of gfp()
Hi Linus,

The function mm/page_alloc.c:__alloc_pages() is performance-critical so
every bit/cycle helps. The page=NULL initialisation is not needed.

Regards,
Tigran

--- linux/mm/page_alloc.c Mon Oct 2 20:02:20 2000
+++ work/mm/page_alloc.c Wed Oct 4 13:25:22 2000
@@ -294,7 +294,7 @@
zone_t **zone;
int direct_reclaim = 0;
unsigned int gfp_mask = zonelist->gfp_mask;
- struct page * page = NULL;
+ struct page * page;

/*
* Allocations put pressure on the VM subsystem.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.045 / U:7.500 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site