Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121405
b: refs/heads/master
c: 2b1a61f
h: refs/heads/master
i:
  121403: fbe833b
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Dec 25, 2008
1 parent 46d9295 commit 329c25c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 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: 9fee8db222a344b9ee407fad9c652ed823690788
refs/heads/master: 2b1a61f0a8c714c96277bf16a823a84bafa1397d
8 changes: 8 additions & 0 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2252,6 +2252,14 @@ and is between 256 and 4096 characters. It is defined in the file
See comment before function dc390_setup() in
drivers/scsi/tmscsim.c.

topology= [S390]
Format: {off | on}
Specify if the kernel should make use of the cpu
topology informations if the hardware supports these.
The scheduler will make use of these informations and
e.g. base its process migration decisions on it.
Default is off.

tp720= [HW,PS2]

trix= [HW,OSS] MediaTrix AudioTrix Pro
Expand Down
12 changes: 11 additions & 1 deletion trunk/arch/s390/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ struct core_info {
cpumask_t mask;
};

static int topology_enabled;
static void topology_work_fn(struct work_struct *work);
static struct tl_info *tl_info;
static struct core_info core_info;
Expand All @@ -78,7 +79,7 @@ cpumask_t cpu_coregroup_map(unsigned int cpu)
cpumask_t mask;

cpus_clear(mask);
if (!machine_has_topology)
if (!topology_enabled || !machine_has_topology)
return cpu_possible_map;
spin_lock_irqsave(&topology_lock, flags);
while (core) {
Expand Down Expand Up @@ -263,6 +264,15 @@ static void topology_interrupt(__u16 code)
schedule_work(&topology_work);
}

static int __init early_parse_topology(char *p)
{
if (strncmp(p, "on", 2))
return 0;
topology_enabled = 1;
return 0;
}
early_param("topology", early_parse_topology);

static int __init init_topology_update(void)
{
int rc;
Expand Down

0 comments on commit 329c25c

Please sign in to comment.