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
c3e9a7f3
Commit
c3e9a7f3
authored
Jul 01, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: any_online_cpu returns NR_CPUS on fail
parent
ff4ed98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/asm-ppc64/smp.h
include/asm-ppc64/smp.h
+2
-2
No files found.
include/asm-ppc64/smp.h
View file @
c3e9a7f3
...
@@ -44,12 +44,12 @@ static inline unsigned int num_online_cpus(void)
...
@@ -44,12 +44,12 @@ static inline unsigned int num_online_cpus(void)
return
hweight64
(
cpu_online_map
);
return
hweight64
(
cpu_online_map
);
}
}
static
inline
int
any_online_cpu
(
unsigned
int
mask
)
static
inline
unsigned
int
any_online_cpu
(
unsigned
int
mask
)
{
{
if
(
mask
&
cpu_online_map
)
if
(
mask
&
cpu_online_map
)
return
__ffs
(
mask
&
cpu_online_map
);
return
__ffs
(
mask
&
cpu_online_map
);
return
-
1
;
return
NR_CPUS
;
}
}
#define smp_processor_id() (get_paca()->xPacaIndex)
#define smp_processor_id() (get_paca()->xPacaIndex)
...
...
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