summaryrefslogtreecommitdiffstats
path: root/src/include/kernel
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-05-21 07:37:12 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-05-21 07:37:12 -0500
commitb9652b36ff9bfa429ff3e9756e7e43f0da4ea1a7 (patch)
tree6e4ad709b3c9ad1cf45905d1c420751429284634 /src/include/kernel
parentd9d7e6c7247aaf5d2721d08a365e9c51ec18c870 (diff)
downloadblackbird-hostboot-b9652b36ff9bfa429ff3e9756e7e43f0da4ea1a7.tar.gz
blackbird-hostboot-b9652b36ff9bfa429ff3e9756e7e43f0da4ea1a7.zip
Move pagemgr to generic lock free structure.
Diffstat (limited to 'src/include/kernel')
-rw-r--r--src/include/kernel/pagemgr.H5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/kernel/pagemgr.H b/src/include/kernel/pagemgr.H
index 1d7193b22..b99cedff2 100644
--- a/src/include/kernel/pagemgr.H
+++ b/src/include/kernel/pagemgr.H
@@ -2,6 +2,7 @@
#define __KERNEL_PAGEMGR_H
#include <stdint.h>
+#include <util/lockfree/stack.H>
/** @class PageManager
* @brief Manages the allocation of memory pages.
@@ -31,9 +32,9 @@ class PageManager
struct page_t
{
- page_t* next_page;
+ page_t* next;
};
- page_t* first_page[BUCKETS];
+ Util::Lockfree::Stack<page_t> first_page[BUCKETS];
page_t* pop_bucket(size_t);
void push_bucket(page_t*, size_t);
OpenPOWER on IntegriCloud