/*1* arch/parisc/kernel/topology.c - Populate sysfs with topology information2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License as published by5* the Free Software Foundation; either version 2 of the License, or6* (at your option) any later version.7*8* This program is distributed in the hope that it will be useful, but9* WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or11* NON INFRINGEMENT. See the GNU General Public License for more12* details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.17*/1819#include <linux/init.h>20#include <linux/smp.h>21#include <linux/cpu.h>22#include <linux/cache.h>2324static DEFINE_PER_CPU(struct cpu, cpu_devices);2526static int __init topology_init(void)27{28int num;2930for_each_present_cpu(num) {31register_cpu(&per_cpu(cpu_devices, num), num);32}33return 0;34}3536subsys_initcall(topology_init);373839