diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2009-01-20 09:31:31 -0500 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2009-02-08 12:56:11 -0500 |
commit | 766ccb9ed406c230d13c145def08ebea1b932982 (patch) | |
tree | 952f74260d8baa66063fd8efa1b29d2dddb45c2b /kernel | |
parent | f30d5b307c694e03368ab55f2f96b0ca4131e775 (diff) |
async: Rename _special -> _domain for clarity.
Rename the async_*_special() functions to async_*_domain(), which
describes the purpose of these functions much better.
[Broke up long lines to silence checkpatch]
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/async.c | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/kernel/async.c b/kernel/async.c index b5f0d4b94937..e23399d88bac 100644 --- a/kernel/async.c +++ b/kernel/async.c | |||
@@ -224,22 +224,23 @@ async_cookie_t async_schedule(async_func_ptr *ptr, void *data) | |||
224 | EXPORT_SYMBOL_GPL(async_schedule); | 224 | EXPORT_SYMBOL_GPL(async_schedule); |
225 | 225 | ||
226 | /** | 226 | /** |
227 | * async_schedule_special - schedule a function for asynchronous execution with a special running queue | 227 | * async_schedule_domain - schedule a function for asynchronous execution within a certain domain |
228 | * @ptr: function to execute asynchronously | 228 | * @ptr: function to execute asynchronously |
229 | * @data: data pointer to pass to the function | 229 | * @data: data pointer to pass to the function |
230 | * @running: list head to add to while running | 230 | * @running: running list for the domain |
231 | * | 231 | * |
232 | * Returns an async_cookie_t that may be used for checkpointing later. | 232 | * Returns an async_cookie_t that may be used for checkpointing later. |
233 | * @running may be used in the async_synchronize_*_special() functions | 233 | * @running may be used in the async_synchronize_*_domain() functions |
234 | * to wait on a special running queue rather than on the global running | 234 | * to wait within a certain synchronization domain rather than globally. |
235 | * queue. | 235 | * A synchronization domain is specified via the running queue @running to use. |
236 | * Note: This function may be called from atomic or non-atomic contexts. | 236 | * Note: This function may be called from atomic or non-atomic contexts. |
237 | */ | 237 | */ |
238 | async_cookie_t async_schedule_special(async_func_ptr *ptr, void *data, struct list_head *running) | 238 | async_cookie_t async_schedule_domain(async_func_ptr *ptr, void *data, |
239 | struct list_head *running) | ||
239 | { | 240 | { |
240 | return __async_schedule(ptr, data, running); | 241 | return __async_schedule(ptr, data, running); |
241 | } | 242 | } |
242 | EXPORT_SYMBOL_GPL(async_schedule_special); | 243 | EXPORT_SYMBOL_GPL(async_schedule_domain); |
243 | 244 | ||
244 | /** | 245 | /** |
245 | * async_synchronize_full - synchronize all asynchronous function calls | 246 | * async_synchronize_full - synchronize all asynchronous function calls |
@@ -255,27 +256,29 @@ void async_synchronize_full(void) | |||
255 | EXPORT_SYMBOL_GPL(async_synchronize_full); | 256 | EXPORT_SYMBOL_GPL(async_synchronize_full); |
256 | 257 | ||
257 | /** | 258 | /** |
258 | * async_synchronize_full_special - synchronize all asynchronous function calls for a running list | 259 | * async_synchronize_full_domain - synchronize all asynchronous function within a certain domain |
259 | * @list: running list to synchronize on | 260 | * @list: running list to synchronize on |
260 | * | 261 | * |
261 | * This function waits until all asynchronous function calls for the running | 262 | * This function waits until all asynchronous function calls for the |
262 | * list @list have been done. | 263 | * synchronization domain specified by the running list @list have been done. |
263 | */ | 264 | */ |
264 | void async_synchronize_full_special(struct list_head *list) | 265 | void async_synchronize_full_domain(struct list_head *list) |
265 | { | 266 | { |
266 | async_synchronize_cookie_special(next_cookie, list); | 267 | async_synchronize_cookie_domain(next_cookie, list); |
267 | } | 268 | } |
268 | EXPORT_SYMBOL_GPL(async_synchronize_full_special); | 269 | EXPORT_SYMBOL_GPL(async_synchronize_full_domain); |
269 | 270 | ||
270 | /** | 271 | /** |
271 | * async_synchronize_cookie_special - synchronize asynchronous function calls on a running list with cookie checkpointing | 272 | * async_synchronize_cookie_domain - synchronize asynchronous function calls within a certain domain with cookie checkpointing |
272 | * @cookie: async_cookie_t to use as checkpoint | 273 | * @cookie: async_cookie_t to use as checkpoint |
273 | * @running: running list to synchronize on | 274 | * @running: running list to synchronize on |
274 | * | 275 | * |
275 | * This function waits until all asynchronous function calls for the running | 276 | * This function waits until all asynchronous function calls for the |
276 | * list @list submitted prior to @cookie have been done. | 277 | * synchronization domain specified by the running list @list submitted |
278 | * prior to @cookie have been done. | ||
277 | */ | 279 | */ |
278 | void async_synchronize_cookie_special(async_cookie_t cookie, struct list_head *running) | 280 | void async_synchronize_cookie_domain(async_cookie_t cookie, |
281 | struct list_head *running) | ||
279 | { | 282 | { |
280 | ktime_t starttime, delta, endtime; | 283 | ktime_t starttime, delta, endtime; |
281 | 284 | ||
@@ -295,7 +298,7 @@ void async_synchronize_cookie_special(async_cookie_t cookie, struct list_head *r | |||
295 | (long long)ktime_to_ns(delta) >> 10); | 298 | (long long)ktime_to_ns(delta) >> 10); |
296 | } | 299 | } |
297 | } | 300 | } |
298 | EXPORT_SYMBOL_GPL(async_synchronize_cookie_special); | 301 | EXPORT_SYMBOL_GPL(async_synchronize_cookie_domain); |
299 | 302 | ||
300 | /** | 303 | /** |
301 | * async_synchronize_cookie - synchronize asynchronous function calls with cookie checkpointing | 304 | * async_synchronize_cookie - synchronize asynchronous function calls with cookie checkpointing |
@@ -306,7 +309,7 @@ EXPORT_SYMBOL_GPL(async_synchronize_cookie_special); | |||
306 | */ | 309 | */ |
307 | void async_synchronize_cookie(async_cookie_t cookie) | 310 | void async_synchronize_cookie(async_cookie_t cookie) |
308 | { | 311 | { |
309 | async_synchronize_cookie_special(cookie, &async_running); | 312 | async_synchronize_cookie_domain(cookie, &async_running); |
310 | } | 313 | } |
311 | EXPORT_SYMBOL_GPL(async_synchronize_cookie); | 314 | EXPORT_SYMBOL_GPL(async_synchronize_cookie); |
312 | 315 | ||