Skip to contentSkip to conversation

remove antiquated comment from page_alloc.c

PATCH William Lee Irwin III 1 participant 1 message Jun 2, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This comment, describing how to optimize for gcc-2.2.2, is so outdated it should be removed. It's also quite doubtful it should ever have been placed in this file at all (perhaps something under Documentation/ ?). This patch removes it.

Against 2.5.19.

Cheers,
Bill

===== mm/page_alloc.c 1.65 vs edited =====

mm/page_alloc.c +0 -12
@@ -43,18 +43,6 @@
 static int zone_balance_min[MAX_NR_ZONES] __initdata = { 20 , 20, 20, };
 static int zone_balance_max[MAX_NR_ZONES] __initdata = { 255 , 255, 255, };
 
-/*
- * Free_page() adds the page to the free lists. This is optimized for
- * fast normal cases (no error jumps taken normally).
- *
- * The way to optimize jumps for gcc-2.2.2 is to:
- *  - select the "normal" case and put it inside the if () { XXX }
- *  - no else-statements if you can avoid them
- *
- * With the above two rules, you get a straight-line execution path
- * for the normal case, giving better asm-code.
- */
-
 #define memlist_init(x) INIT_LIST_HEAD(x)
 #define memlist_add_head list_add
 #define memlist_add_tail list_add_tail