Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
06aaf76a
Commit
06aaf76a
authored
Dec 18, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sched: move test_sd_parent() to an SMP section of sched.h
Impact: build fix Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
100fdaee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
include/linux/sched.h
include/linux/sched.h
+9
-9
No files found.
include/linux/sched.h
View file @
06aaf76a
...
...
@@ -920,6 +920,15 @@ extern void partition_sched_domains(int ndoms_new, struct cpumask *doms_new,
struct
sched_domain_attr
*
dattr_new
);
extern
int
arch_reinit_sched_domains
(
void
);
/* Test a flag in parent sched domain */
static
inline
int
test_sd_parent
(
struct
sched_domain
*
sd
,
int
flag
)
{
if
(
sd
->
parent
&&
(
sd
->
parent
->
flags
&
flag
))
return
1
;
return
0
;
}
#else
/* CONFIG_SMP */
struct
sched_domain_attr
;
...
...
@@ -1431,15 +1440,6 @@ struct task_struct {
#endif
};
/* Test a flag in parent sched domain */
static
inline
int
test_sd_parent
(
struct
sched_domain
*
sd
,
int
flag
)
{
if
(
sd
->
parent
&&
(
sd
->
parent
->
flags
&
flag
))
return
1
;
return
0
;
}
/*
* Priority of a process goes from 0..MAX_PRIO-1, valid RT
* priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH
...
...
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