Subversion Repositories shark

Rev

Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
#ifndef _ASM_I386_CPU_H_
2
#define _ASM_I386_CPU_H_
3
 
4
#include <linux/device.h>
5
#include <linux/cpu.h>
6
#include <linux/topology.h>
7
 
8
#include <asm/node.h>
9
 
10
struct i386_cpu {
11
        struct cpu cpu;
12
};
13
extern struct i386_cpu cpu_devices[NR_CPUS];
14
 
15
 
16
static inline int arch_register_cpu(int num){
17
        struct node *parent = NULL;
18
 
19
#ifdef CONFIG_NUMA
20
        parent = &node_devices[cpu_to_node(num)].node;
21
#endif /* CONFIG_NUMA */
22
 
23
        return register_cpu(&cpu_devices[num].cpu, num, parent);
24
}
25
 
26
#endif /* _ASM_I386_CPU_H_ */