diff options
author | Jag Raman <jag.raman@oracle.com> | 2017-06-23 20:58:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-25 22:43:13 +0200 |
commit | 06f3c3ac60111a2ebffdc6f6acf16847153c0589 (patch) | |
tree | b255c821e7cae4404d1e0b6fbcdc1ce06cd78f00 /arch/sparc/include/asm/mdesc.h | |
parent | sparc64: mdesc: use __GFP_REPEAT action modifier for VM allocation (diff) | |
download | linux-06f3c3ac60111a2ebffdc6f6acf16847153c0589.tar.xz linux-06f3c3ac60111a2ebffdc6f6acf16847153c0589.zip |
sparc64: add MDESC node name property to VIO device metadata
Add the MDESC node name of MDESC client to VIO device metadata. It is
later used to uniquely identify a node in the MDESC. VIO & MDESC APIs
are updated to handle this node name.
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/mdesc.h')
-rw-r--r-- | arch/sparc/include/asm/mdesc.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sparc/include/asm/mdesc.h b/arch/sparc/include/asm/mdesc.h index 68d19909d1cd..e8a4c413a1c7 100644 --- a/arch/sparc/include/asm/mdesc.h +++ b/arch/sparc/include/asm/mdesc.h @@ -63,9 +63,10 @@ u64 mdesc_arc_target(struct mdesc_handle *hp, u64 arc); void mdesc_update(void); struct mdesc_notifier_client { - void (*add)(struct mdesc_handle *handle, u64 node); - void (*remove)(struct mdesc_handle *handle, u64 node); - + void (*add)(struct mdesc_handle *handle, u64 node, + const char *node_name); + void (*remove)(struct mdesc_handle *handle, u64 node, + const char *node_name); const char *node_name; struct mdesc_notifier_client *next; }; |