diff options
Diffstat (limited to 'arch/powerpc/sysdev/xive/native.c')
-rw-r--r-- | arch/powerpc/sysdev/xive/native.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/xive/native.c b/arch/powerpc/sysdev/xive/native.c index 2f26b74f6cfa..37987c815913 100644 --- a/arch/powerpc/sysdev/xive/native.c +++ b/arch/powerpc/sysdev/xive/native.c | |||
@@ -800,6 +800,13 @@ int xive_native_set_queue_state(u32 vp_id, u32 prio, u32 qtoggle, u32 qindex) | |||
800 | } | 800 | } |
801 | EXPORT_SYMBOL_GPL(xive_native_set_queue_state); | 801 | EXPORT_SYMBOL_GPL(xive_native_set_queue_state); |
802 | 802 | ||
803 | bool xive_native_has_queue_state_support(void) | ||
804 | { | ||
805 | return opal_check_token(OPAL_XIVE_GET_QUEUE_STATE) && | ||
806 | opal_check_token(OPAL_XIVE_SET_QUEUE_STATE); | ||
807 | } | ||
808 | EXPORT_SYMBOL_GPL(xive_native_has_queue_state_support); | ||
809 | |||
803 | int xive_native_get_vp_state(u32 vp_id, u64 *out_state) | 810 | int xive_native_get_vp_state(u32 vp_id, u64 *out_state) |
804 | { | 811 | { |
805 | __be64 state; | 812 | __be64 state; |