Title: [9149] trunk/arch/blackfin/kernel/process.c: Bug[#6254] [#5805] Rollback last commit.
Revision
9149
Author
sonicz
Date
2010-09-19 23:14:36 -0400 (Sun, 19 Sep 2010)

Log Message

Bug[#6254] [#5805] Rollback last commit.

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/process.c (9148 => 9149)


--- trunk/arch/blackfin/kernel/process.c	2010-09-17 11:09:57 UTC (rev 9148)
+++ trunk/arch/blackfin/kernel/process.c	2010-09-20 03:14:36 UTC (rev 9149)
@@ -454,22 +454,8 @@
 	if (0)
 #endif
 	{
-		/* When init section is released to kernel memory management system,
-		 * it may be merged into the same buddy block if it is adjacent to
-		 * generic allocable memory region. In this case, an address range
-		 * may across the border.
-		 */
-		if (__init_end == memory_start)
-			if (in_mem(addr, size, (unsigned long)__init_begin, (unsigned long)memory_end))
-				return 1;
-		else {
-			if (in_mem(addr, size, memory_start, memory_end))
-				return 1;
-
-			if (in_mem(addr, size, (unsigned long)__init_begin, (unsigned long)__init_end))
-				return 1;
-		}
-
+		if (in_mem(addr, size, memory_start, memory_end))
+			return 1;
 		if (in_mem(addr, size, memory_mtd_end, physical_mem_end))
 			return 1;
 # ifndef CONFIG_ROMFS_ON_MTD
@@ -479,23 +465,13 @@
 			if (in_mem(addr, size, memory_mtd_start, memory_mtd_end))
 				return 1;
 	} else {
-		/* When init section is released to kernel memory management system,
-		 * it may be merged into the same buddy block if it is adjacent to
-		 * generic allocable memory region. In this case, an address range
-		 * may across the border.
-		 */
-		if (__init_end == memory_start)
-			if (in_mem(addr, size, (unsigned long)__init_begin, (unsigned long)physical_mem_end))
-				return 1;
-		else {
-			if (in_mem(addr, size, memory_start, physical_mem_end))
-				return 1;
-
-			if (in_mem(addr, size, (unsigned long)__init_begin, (unsigned long)__init_end))
-				return 1;
-		}
+		if (in_mem(addr, size, memory_start, physical_mem_end))
+			return 1;
 	}
 
+	if (in_mem(addr, size, (unsigned long)__init_begin, (unsigned long)__init_end))
+		return 1;
+
 	if (in_mem_const(addr, size, L1_CODE_START, L1_CODE_LENGTH))
 		return 1;
 	if (in_mem_const_off(addr, size, _etext_l1 - _stext_l1, L1_CODE_START, L1_CODE_LENGTH))
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to