mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SPARC64]: NUMA device infrastructure.
Record and propagate NUMA information for devices. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
0c49a573ea
commit
c1b1a5f1f1
16 changed files with 91 additions and 23 deletions
|
|
@ -16,6 +16,8 @@ struct dev_archdata {
|
|||
|
||||
struct device_node *prom_node;
|
||||
struct of_device *op;
|
||||
|
||||
int numa_node;
|
||||
};
|
||||
|
||||
#endif /* _ASM_SPARC_DEVICE_H */
|
||||
|
|
|
|||
|
|
@ -77,6 +77,11 @@ extern int of_getintprop_default(struct device_node *np,
|
|||
const char *name,
|
||||
int def);
|
||||
extern int of_find_in_proplist(const char *list, const char *match, int len);
|
||||
#ifdef CONFIG_NUMA
|
||||
extern int of_node_to_nid(struct device_node *dp);
|
||||
#else
|
||||
#define of_node_to_nid(dp) (-1)
|
||||
#endif
|
||||
|
||||
extern void prom_build_devicetree(void);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue