Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155591
b: refs/heads/master
c: 994e9a2
h: refs/heads/master
i:
  155589: ececb08
  155587: b67ac6f
  155583: 39cc911
v: v3
  • Loading branch information
Julia Lawall authored and Mike Frysinger committed Jul 16, 2009
1 parent 5fb72a7 commit f0e27d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5bc6e3cfe6db5f33c60f042a9ba203431f334756
refs/heads/master: 994e9a2e01f47f7ce24dec7edc45d70401468370
8 changes: 8 additions & 0 deletions trunk/arch/blackfin/mach-common/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ int smp_call_function(void (*func)(void *info), void *info, int wait)
return 0;

msg = kmalloc(sizeof(*msg), GFP_ATOMIC);
if (!msg)
return -ENOMEM;
INIT_LIST_HEAD(&msg->list);
msg->call_struct.func = func;
msg->call_struct.info = info;
Expand Down Expand Up @@ -252,6 +254,8 @@ int smp_call_function_single(int cpuid, void (*func) (void *info), void *info,
cpu_set(cpu, callmap);

msg = kmalloc(sizeof(*msg), GFP_ATOMIC);
if (!msg)
return -ENOMEM;
INIT_LIST_HEAD(&msg->list);
msg->call_struct.func = func;
msg->call_struct.info = info;
Expand Down Expand Up @@ -287,6 +291,8 @@ void smp_send_reschedule(int cpu)
return;

msg = kmalloc(sizeof(*msg), GFP_ATOMIC);
if (!msg)
return;
memset(msg, 0, sizeof(msg));
INIT_LIST_HEAD(&msg->list);
msg->type = BFIN_IPI_RESCHEDULE;
Expand Down Expand Up @@ -314,6 +320,8 @@ void smp_send_stop(void)
return;

msg = kmalloc(sizeof(*msg), GFP_ATOMIC);
if (!msg)
return;
memset(msg, 0, sizeof(msg));
INIT_LIST_HEAD(&msg->list);
msg->type = BFIN_IPI_CPU_STOP;
Expand Down

0 comments on commit f0e27d8

Please sign in to comment.