]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/opal: Make __opal_async_{get, release}_token() static
authorCyril Bur <cyrilbur@gmail.com>
Fri, 3 Nov 2017 02:41:41 +0000 (13:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 09:20:26 +0000 (20:20 +1100)
commit2dd9d185f208f0c5cdf647a87fb6d9fc1018ebbd
tree4f75d5e6f4da84748f82b940445b2342fbe4797e
parent4562640a7fde721fc8fa96a23d1dd75b0719a5f7
powerpc/opal: Make __opal_async_{get, release}_token() static

There are no callers of both __opal_async_get_token() and
__opal_async_release_token().

This patch also removes the possibility of "emergency through
synchronous call to __opal_async_get_token()" as such it makes more
sense to initialise opal_sync_sem for the maximum number of async
tokens.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-async.c