Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370879
b: refs/heads/master
c: 601abdc
h: refs/heads/master
i:
  370877: 364d8da
  370875: 3d99ca6
  370871: 35c836e
  370863: 8c03cc4
  370847: 93db292
  370815: c15b099
v: v3
  • Loading branch information
Nathan Fontenot authored and Benjamin Herrenschmidt committed Apr 30, 2013
1 parent 670c355 commit c17c79f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 177c19237b886a2ab71011c9e6f40190e5c24b83
refs/heads/master: 601abdc3b4773afb9a80afc9c4c024724b7c5f4e
8 changes: 8 additions & 0 deletions trunk/arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,8 @@ static void reset_topology_timer(void)
mod_timer(&topology_timer, topology_timer.expires);
}

#ifdef CONFIG_SMP

static void stage_topology_update(int core_id)
{
cpumask_or(&cpu_associativity_changes_mask,
Expand Down Expand Up @@ -1563,6 +1565,8 @@ static struct notifier_block dt_update_nb = {
.notifier_call = dt_update_callback,
};

#endif

/*
* Start polling for associativity changes.
*/
Expand All @@ -1574,7 +1578,9 @@ int start_topology_update(void)
if (!prrn_enabled) {
prrn_enabled = 1;
vphn_enabled = 0;
#ifdef CONFIG_SMP
rc = of_reconfig_notifier_register(&dt_update_nb);
#endif
}
} else if (firmware_has_feature(FW_FEATURE_VPHN) &&
get_lppaca()->shared_proc) {
Expand All @@ -1599,7 +1605,9 @@ int stop_topology_update(void)

if (prrn_enabled) {
prrn_enabled = 0;
#ifdef CONFIG_SMP
rc = of_reconfig_notifier_unregister(&dt_update_nb);
#endif
} else if (vphn_enabled) {
vphn_enabled = 0;
rc = del_timer_sync(&topology_timer);
Expand Down

0 comments on commit c17c79f

Please sign in to comment.