diff options
Diffstat (limited to 'arch/s390/kernel/debug.c')
-rw-r--r-- | arch/s390/kernel/debug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 530226b6cb19..86b3e74f569e 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c | |||
@@ -277,7 +277,7 @@ debug_info_alloc(const char *name, int pages_per_area, int nr_areas, | |||
277 | memset(rc->views, 0, DEBUG_MAX_VIEWS * sizeof(struct debug_view *)); | 277 | memset(rc->views, 0, DEBUG_MAX_VIEWS * sizeof(struct debug_view *)); |
278 | memset(rc->debugfs_entries, 0 ,DEBUG_MAX_VIEWS * | 278 | memset(rc->debugfs_entries, 0 ,DEBUG_MAX_VIEWS * |
279 | sizeof(struct dentry*)); | 279 | sizeof(struct dentry*)); |
280 | atomic_set(&(rc->ref_count), 0); | 280 | refcount_set(&(rc->ref_count), 0); |
281 | 281 | ||
282 | return rc; | 282 | return rc; |
283 | 283 | ||
@@ -361,7 +361,7 @@ debug_info_create(const char *name, int pages_per_area, int nr_areas, | |||
361 | debug_area_last = rc; | 361 | debug_area_last = rc; |
362 | rc->next = NULL; | 362 | rc->next = NULL; |
363 | 363 | ||
364 | debug_info_get(rc); | 364 | refcount_set(&rc->ref_count, 1); |
365 | out: | 365 | out: |
366 | return rc; | 366 | return rc; |
367 | } | 367 | } |
@@ -416,7 +416,7 @@ static void | |||
416 | debug_info_get(debug_info_t * db_info) | 416 | debug_info_get(debug_info_t * db_info) |
417 | { | 417 | { |
418 | if (db_info) | 418 | if (db_info) |
419 | atomic_inc(&db_info->ref_count); | 419 | refcount_inc(&db_info->ref_count); |
420 | } | 420 | } |
421 | 421 | ||
422 | /* | 422 | /* |
@@ -431,7 +431,7 @@ debug_info_put(debug_info_t *db_info) | |||
431 | 431 | ||
432 | if (!db_info) | 432 | if (!db_info) |
433 | return; | 433 | return; |
434 | if (atomic_dec_and_test(&db_info->ref_count)) { | 434 | if (refcount_dec_and_test(&db_info->ref_count)) { |
435 | for (i = 0; i < DEBUG_MAX_VIEWS; i++) { | 435 | for (i = 0; i < DEBUG_MAX_VIEWS; i++) { |
436 | if (!db_info->views[i]) | 436 | if (!db_info->views[i]) |
437 | continue; | 437 | continue; |