Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
32a533f2
Commit
32a533f2
authored
Aug 19, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rt/mm' into rt/base
parents
e5d14981
e3cf1fe8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
include/linux/page_cgroup.h
include/linux/page_cgroup.h
+4
-3
mm/page_cgroup.c
mm/page_cgroup.c
+1
-0
No files found.
include/linux/page_cgroup.h
View file @
32a533f2
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
*/
*/
struct
page_cgroup
{
struct
page_cgroup
{
unsigned
long
flags
;
unsigned
long
flags
;
spinlock_t
lock
;
struct
mem_cgroup
*
mem_cgroup
;
struct
mem_cgroup
*
mem_cgroup
;
struct
page
*
page
;
struct
page
*
page
;
struct
list_head
lru
;
/* per cgroup LRU list */
struct
list_head
lru
;
/* per cgroup LRU list */
...
@@ -70,17 +71,17 @@ static inline enum zone_type page_cgroup_zid(struct page_cgroup *pc)
...
@@ -70,17 +71,17 @@ static inline enum zone_type page_cgroup_zid(struct page_cgroup *pc)
static
inline
void
lock_page_cgroup
(
struct
page_cgroup
*
pc
)
static
inline
void
lock_page_cgroup
(
struct
page_cgroup
*
pc
)
{
{
bit_spin_lock
(
PCG_LOCK
,
&
pc
->
flags
);
spin_lock
(
&
pc
->
lock
);
}
}
static
inline
int
trylock_page_cgroup
(
struct
page_cgroup
*
pc
)
static
inline
int
trylock_page_cgroup
(
struct
page_cgroup
*
pc
)
{
{
return
bit_spin_trylock
(
PCG_LOCK
,
&
pc
->
flags
);
return
spin_trylock
(
&
pc
->
lock
);
}
}
static
inline
void
unlock_page_cgroup
(
struct
page_cgroup
*
pc
)
static
inline
void
unlock_page_cgroup
(
struct
page_cgroup
*
pc
)
{
{
bit_spin_unlock
(
PCG_LOCK
,
&
pc
->
flags
);
spin_unlock
(
&
pc
->
lock
);
}
}
#else
/* CONFIG_CGROUP_MEM_RES_CTLR */
#else
/* CONFIG_CGROUP_MEM_RES_CTLR */
...
...
mm/page_cgroup.c
View file @
32a533f2
...
@@ -14,6 +14,7 @@ static void __meminit
...
@@ -14,6 +14,7 @@ static void __meminit
__init_page_cgroup
(
struct
page_cgroup
*
pc
,
unsigned
long
pfn
)
__init_page_cgroup
(
struct
page_cgroup
*
pc
,
unsigned
long
pfn
)
{
{
pc
->
flags
=
0
;
pc
->
flags
=
0
;
spin_lock_init
(
&
pc
->
lock
);
pc
->
mem_cgroup
=
NULL
;
pc
->
mem_cgroup
=
NULL
;
pc
->
page
=
pfn_to_page
(
pfn
);
pc
->
page
=
pfn_to_page
(
pfn
);
INIT_LIST_HEAD
(
&
pc
->
lru
);
INIT_LIST_HEAD
(
&
pc
->
lru
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment