git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
include
/
asm-i386
/
mach-summit
/
mach_apic.h
diff --git
a/include/asm-i386/mach-summit/mach_apic.h
b/include/asm-i386/mach-summit/mach_apic.h
index
214263a
..
9ea48a7
100644
(file)
--- a/
include/asm-i386/mach-summit/mach_apic.h
+++ b/
include/asm-i386/mach-summit/mach_apic.h
@@
-19,7
+19,8
@@
static inline cpumask_t target_cpus(void)
{
static inline cpumask_t target_cpus(void)
{
- return CPU_MASK_ALL;
+ cpumask_t tmp = CPU_MASK_ALL;
+ return tmp;
}
#define TARGET_CPUS (target_cpus())
}
#define TARGET_CPUS (target_cpus())
@@
-138,14
+139,14
@@
static inline void enable_apic_mode(void)
{
}
{
}
-static inline unsigned int cpu_mask_to_apicid(cpumask_t cpumask)
+static inline unsigned int cpu_mask_to_apicid(cpumask_
const_
t cpumask)
{
int num_bits_set;
int cpus_found = 0;
int cpu;
int apicid;
{
int num_bits_set;
int cpus_found = 0;
int cpu;
int apicid;
- num_bits_set = cpus_weight(cpumask);
+ num_bits_set = cpus_weight
_const
(cpumask);
/* Return id to all */
if (num_bits_set == NR_CPUS)
return (int) 0xFF;
/* Return id to all */
if (num_bits_set == NR_CPUS)
return (int) 0xFF;
@@
-153,10
+154,10
@@
static inline unsigned int cpu_mask_to_apicid(cpumask_t cpumask)
* The cpus in the mask must all be on the apic cluster. If are not
* on the same apicid cluster return default value of TARGET_CPUS.
*/
* The cpus in the mask must all be on the apic cluster. If are not
* on the same apicid cluster return default value of TARGET_CPUS.
*/
- cpu = first_cpu(cpumask);
+ cpu = first_cpu
_const
(cpumask);
apicid = cpu_to_logical_apicid(cpu);
while (cpus_found < num_bits_set) {
apicid = cpu_to_logical_apicid(cpu);
while (cpus_found < num_bits_set) {
- if (cpu_isset(cpu, cpumask)) {
+ if (cpu_isset
_const
(cpu, cpumask)) {
int new_apicid = cpu_to_logical_apicid(cpu);
if (apicid_cluster(apicid) !=
apicid_cluster(new_apicid)){
int new_apicid = cpu_to_logical_apicid(cpu);
if (apicid_cluster(apicid) !=
apicid_cluster(new_apicid)){