diff options
author | Dean Nelson <dcn@sgi.com> | 2008-07-30 01:34:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 12:41:49 -0400 |
commit | 97bf1aa1e1bb18de9bb1987c6eb9ad751bf08aab (patch) | |
tree | c07472cdffc9c53aefa7f7eeb6098b18bc4f7ac1 /drivers/misc/sgi-xp/xpc_main.c | |
parent | aaa3cd694c0c4ae534e8aafdf4227e395c57d6bd (diff) |
sgi-xp: move xpc_allocate() into xpc_send()/xpc_send_notify()
Move xpc_allocate() functionality into xpc_send()/xpc_send_notify() so
xpc_allocate() no longer needs to be called by XPNET.
Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/sgi-xp/xpc_main.c')
-rw-r--r-- | drivers/misc/sgi-xp/xpc_main.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c index 4a6eb377475..aae90f5933b 100644 --- a/drivers/misc/sgi-xp/xpc_main.c +++ b/drivers/misc/sgi-xp/xpc_main.c | |||
@@ -217,12 +217,9 @@ void (*xpc_IPI_send_openrequest) (struct xpc_channel *ch, | |||
217 | void (*xpc_IPI_send_openreply) (struct xpc_channel *ch, | 217 | void (*xpc_IPI_send_openreply) (struct xpc_channel *ch, |
218 | unsigned long *irq_flags); | 218 | unsigned long *irq_flags); |
219 | 219 | ||
220 | enum xp_retval (*xpc_allocate_msg) (struct xpc_channel *ch, u32 flags, | 220 | enum xp_retval (*xpc_send_msg) (struct xpc_channel *ch, u32 flags, |
221 | struct xpc_msg **address_of_msg); | 221 | void *payload, u16 payload_size, u8 notify_type, |
222 | 222 | xpc_notify_func func, void *key); | |
223 | enum xp_retval (*xpc_send_msg) (struct xpc_channel *ch, struct xpc_msg *msg, | ||
224 | u8 notify_type, xpc_notify_func func, | ||
225 | void *key); | ||
226 | void (*xpc_received_msg) (struct xpc_channel *ch, struct xpc_msg *msg); | 223 | void (*xpc_received_msg) (struct xpc_channel *ch, struct xpc_msg *msg); |
227 | 224 | ||
228 | /* | 225 | /* |
@@ -1286,9 +1283,8 @@ xpc_init(void) | |||
1286 | 1283 | ||
1287 | /* set the interface to point at XPC's functions */ | 1284 | /* set the interface to point at XPC's functions */ |
1288 | xpc_set_interface(xpc_initiate_connect, xpc_initiate_disconnect, | 1285 | xpc_set_interface(xpc_initiate_connect, xpc_initiate_disconnect, |
1289 | xpc_initiate_allocate, xpc_initiate_send, | 1286 | xpc_initiate_send, xpc_initiate_send_notify, |
1290 | xpc_initiate_send_notify, xpc_initiate_received, | 1287 | xpc_initiate_received, xpc_initiate_partid_to_nasids); |
1291 | xpc_initiate_partid_to_nasids); | ||
1292 | 1288 | ||
1293 | return 0; | 1289 | return 0; |
1294 | 1290 | ||