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
d2b4affa
Commit
d2b4affa
authored
May 11, 2004
by
Dave Jones
Committed by
Dave Jones
May 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] cpu_sibling_mask fixup.
parent
86a15ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
+4
-10
No files found.
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
View file @
d2b4affa
...
...
@@ -268,21 +268,15 @@ static int cpufreq_p4_cpu_exit(struct cpufreq_policy *policy)
static
unsigned
int
cpufreq_p4_get
(
unsigned
int
cpu
)
{
unsigned
int
hyperthreading
;
cpumask_t
cpus_allowed
,
affected_cpu_map
;
u32
l
,
h
;
hyperthreading
=
0
;
/* only run on CPU to be set, or on its sibling */
cpus_allowed
=
current
->
cpus_allowed
;
affected_cpu_map
=
cpumask_of_cpu
(
cpu
);
#ifdef CONFIG_X86_HT
hyperthreading
=
((
cpu_has_ht
)
&&
(
smp_num_siblings
==
2
));
if
(
hyperthreading
)
{
sibling
=
cpu_sibling_map
[
cpu
];
cpu_set
(
sibling
,
affected_cpu_map
);
}
#ifdef CONFIG_SMP
affected_cpu_map
=
cpu_sibling_map
[
cpu
];
#else
affected_cpu_map
=
cpumask_of_cpu
(
cpu
);
#endif
set_cpus_allowed
(
current
,
affected_cpu_map
);
BUG_ON
(
!
cpu_isset
(
smp_processor_id
(),
affected_cpu_map
));
...
...
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