diff options
author | Richard Braun <rbraun@sceen.net> | 2016-12-09 01:41:06 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-12-09 01:41:06 +0100 |
commit | 39c13b3b84b34e0938220126c8f147d2b0b6ac89 (patch) | |
tree | 92accef33f04f49a01765e00ec026b092ae0c8ca /kern/xcall.c | |
parent | 84c92cd2be8bc4aea6c14a186f79c2277f0fd4aa (diff) |
Force brackets around one-line conditional statements
This change was done using astyle, with a few manual editing here and
there.
Diffstat (limited to 'kern/xcall.c')
-rw-r--r-- | kern/xcall.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/xcall.c b/kern/xcall.c index 7ea299db..398001d1 100644 --- a/kern/xcall.c +++ b/kern/xcall.c @@ -101,8 +101,9 @@ xcall_setup(void) { unsigned int i; - for (i = 0; i < cpu_count(); i++) + for (i = 0; i < cpu_count(); i++) { xcall_cpu_data_init(percpu_ptr(xcall_cpu_data, i)); + } } void @@ -139,8 +140,9 @@ xcall_call(xcall_fn_t fn, void *arg, unsigned int cpu) cpu_send_xcall(cpu); - while (remote_data->recv_call != NULL) + while (remote_data->recv_call != NULL) { cpu_pause(); + } spinlock_unlock(&remote_data->lock); |