Patchwork [3.5.y.z,extended,stable] Patch "ARM: 7742/1: topology: export cpu_topology" has been added to staging queue

mail settings
Submitter Luis Henriques
Date June 12, 2013, 1:21 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/250785/
State New
Headers show


Luis Henriques - June 12, 2013, 1:21 p.m.
This is a note to let you know that I have just added a patch titled

    ARM: 7742/1: topology: export cpu_topology

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 376701d5243d1f1f33823e03bf527d96f81ea4b4 Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <>
Date: Fri, 31 May 2013 22:49:22 +0100
Subject: [PATCH] ARM: 7742/1: topology: export cpu_topology

commit 92bdd3f5eba299b33c2f4407977d6fa2e2a6a0da upstream.

The cpu_topology symbol is required by any driver using the topology
interfaces, which leads to a couple of build errors:

ERROR: "cpu_topology" [drivers/net/ethernet/sfc/sfc.ko] undefined!
ERROR: "cpu_topology" [drivers/cpufreq/arm_big_little.ko] undefined!
ERROR: "cpu_topology" [drivers/block/mtip32xx/mtip32xx.ko] undefined!

The obvious solution is to export this symbol.

Signed-off-by: Arnd Bergmann <>
Acked-by: Will Deacon <>
Cc: Nicolas Pitre <>
Cc: Vincent Guittot <>
Signed-off-by: Russell King <>
[ luis: backport to 3.5: adjust context ]
Signed-off-by: Luis Henriques <>
 arch/arm/kernel/topology.c | 2 ++
 1 file changed, 2 insertions(+)



diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
index 8200dea..140c817 100644
--- a/arch/arm/kernel/topology.c
+++ b/arch/arm/kernel/topology.c
@@ -13,6 +13,7 @@ 

 #include <linux/cpu.h>
 #include <linux/cpumask.h>
+#include <linux/export.h>
 #include <linux/init.h>
 #include <linux/percpu.h>
 #include <linux/node.h>
@@ -42,6 +43,7 @@ 
 #define MPIDR_LEVEL2_SHIFT 16

 struct cputopo_arm cpu_topology[NR_CPUS];

 const struct cpumask *cpu_coregroup_mask(int cpu)