Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4767
b: refs/heads/master
c: c327ff6
h: refs/heads/master
i:
  4765: d83097d
  4763: 63bd8b1
  4759: a3db1aa
  4751: d2af4f6
  4735: 0dab57f
v: v3
  • Loading branch information
Linus Torvalds committed Jul 13, 2005
1 parent 305b09f commit a21694d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59192ed9e7aa81b06a1803661419f7261afca1ad
refs/heads/master: c327ff6250fb558659ad689fe33f50524eda74e3
7 changes: 4 additions & 3 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* The present bitmask indicates that the CPU is physically present.
* The online bitmask indicates that the CPU is up and running.
*/
cpumask_t cpu_present_mask;
cpumask_t cpu_possible_map;
cpumask_t cpu_online_map;

/*
Expand Down Expand Up @@ -235,7 +235,8 @@ void __init smp_prepare_boot_cpu(void)
{
unsigned int cpu = smp_processor_id();

cpu_set(cpu, cpu_present_mask);
cpu_set(cpu, cpu_possible_map);
cpu_set(cpu, cpu_present_map);
cpu_set(cpu, cpu_online_map);
}

Expand Down Expand Up @@ -355,7 +356,7 @@ void show_ipi_list(struct seq_file *p)

seq_puts(p, "IPI:");

for_each_online_cpu(cpu)
for_each_present_cpu(cpu)
seq_printf(p, " %10lu", per_cpu(ipi_data, cpu).ipi_count);

seq_putc(p, '\n');
Expand Down
8 changes: 5 additions & 3 deletions trunk/arch/arm/mach-integrator/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,13 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
max_cpus = ncores;

/*
* Initialise the present mask - this tells us which CPUs should
* be present.
* Initialise the possible/present maps.
* cpu_possible_map describes the set of CPUs which may be present
* cpu_present_map describes the set of CPUs populated
*/
for (i = 0; i < max_cpus; i++) {
cpu_set(i, cpu_present_mask);
cpu_set(i, cpu_possible_map);
cpu_set(i, cpu_present_map);
}

/*
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-omap1/leds-h2p2-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <linux/init.h>
#include <linux/kernel_stat.h>
#include <linux/sched.h>
#include <linux/version.h>

#include <asm/io.h>
#include <asm/hardware.h>
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/nwfpe/fpmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "fpa11.h"

#include <linux/module.h>
#include <linux/version.h>
#include <linux/config.h>

/* XXX */
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/plat-omap/ocpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include <linux/config.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-arm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

#define raw_smp_processor_id() (current_thread_info()->cpu)

extern cpumask_t cpu_present_mask;
#define cpu_possible_map cpu_present_mask

/*
* at the moment, there's not a big penalty for changing CPUs
* (the >big< penalty is running SMP in the first place)
Expand Down
2 changes: 1 addition & 1 deletion trunk/scripts/Lindent
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
indent -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"

0 comments on commit a21694d

Please sign in to comment.