summaryrefslogtreecommitdiff
path: root/target/linux/cavium-octeon/patches/004-named_alloc_function.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2009-05-18 13:08:46 +0000
committerImre Kaloz <kaloz@openwrt.org>2009-05-18 13:08:46 +0000
commit9db4496e781c6b6a08cfb804607bb49cdc757457 (patch)
tree447c45d65e6267ee3efc9e2e623448adf3f17646 /target/linux/cavium-octeon/patches/004-named_alloc_function.patch
parentce87c61ae982e6e82b500c4990f3ce018526b322 (diff)
downloadmtk-20170518-9db4496e781c6b6a08cfb804607bb49cdc757457.zip
mtk-20170518-9db4496e781c6b6a08cfb804607bb49cdc757457.tar.gz
mtk-20170518-9db4496e781c6b6a08cfb804607bb49cdc757457.tar.bz2
upgrade to 2.6.30-rc6, refresh patches
SVN-Revision: 15912
Diffstat (limited to 'target/linux/cavium-octeon/patches/004-named_alloc_function.patch')
-rw-r--r--target/linux/cavium-octeon/patches/004-named_alloc_function.patch19
1 files changed, 4 insertions, 15 deletions
diff --git a/target/linux/cavium-octeon/patches/004-named_alloc_function.patch b/target/linux/cavium-octeon/patches/004-named_alloc_function.patch
index cb0b910..a3135f0 100644
--- a/target/linux/cavium-octeon/patches/004-named_alloc_function.patch
+++ b/target/linux/cavium-octeon/patches/004-named_alloc_function.patch
@@ -6,11 +6,9 @@ Signed-off-by: David Daney <ddaney@caviumnetworks.com>
arch/mips/include/asm/octeon/cvmx-bootmem.h | 85 ++++++++++++++++++
2 files changed, 186 insertions(+), 0 deletions(-)
-diff --git a/arch/mips/cavium-octeon/executive/cvmx-bootmem.c b/arch/mips/cavium-octeon/executive/cvmx-bootmem.c
-index 4f5a08b..8972448 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-bootmem.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-bootmem.c
-@@ -97,6 +97,32 @@ void *cvmx_bootmem_alloc(uint64_t size, uint64_t alignment)
+@@ -97,6 +97,32 @@ void *cvmx_bootmem_alloc(uint64_t size,
return cvmx_bootmem_alloc_range(size, alignment, 0, 0);
}
@@ -43,7 +41,7 @@ index 4f5a08b..8972448 100644
int cvmx_bootmem_free_named(char *name)
{
return cvmx_bootmem_phy_named_block_free(name, 0);
-@@ -584,3 +610,78 @@ int cvmx_bootmem_phy_named_block_free(char *name, uint32_t flags)
+@@ -584,3 +610,78 @@ int cvmx_bootmem_phy_named_block_free(ch
cvmx_bootmem_unlock();
return named_block_ptr != NULL; /* 0 on failure, 1 on success */
}
@@ -122,11 +120,9 @@ index 4f5a08b..8972448 100644
+ cvmx_spinlock_unlock((cvmx_spinlock_t *)&(cvmx_bootmem_desc->lock));
+ return addr_allocated;
+}
-diff --git a/arch/mips/include/asm/octeon/cvmx-bootmem.h b/arch/mips/include/asm/octeon/cvmx-bootmem.h
-index 1cbe4b5..8e708bd 100644
--- a/arch/mips/include/asm/octeon/cvmx-bootmem.h
+++ b/arch/mips/include/asm/octeon/cvmx-bootmem.h
-@@ -183,6 +183,64 @@ extern void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment,
+@@ -183,6 +183,64 @@ extern void *cvmx_bootmem_alloc_range(ui
* Returns 0 on failure,
* !0 on success
*/
@@ -191,7 +187,7 @@ index 1cbe4b5..8e708bd 100644
extern int cvmx_bootmem_free_named(char *name);
/**
-@@ -224,6 +282,33 @@ int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min,
+@@ -224,6 +282,33 @@ int64_t cvmx_bootmem_phy_alloc(uint64_t
uint32_t flags);
/**
@@ -225,10 +221,3 @@ index 1cbe4b5..8e708bd 100644
* Finds a named memory block by name.
* Also used for finding an unused entry in the named block table.
*
---
-1.5.6.5
-
---
-To unsubscribe from this list: send the line "unsubscribe netdev" in
-the body of a message to majordomo@vger.kernel.org
-More majordomo info at http://vger.kernel.org/majordomo-info.html \ No newline at end of file