diff options
Diffstat (limited to 'arch/x86/include/asm/iosf_mbi.h')
-rw-r--r-- | arch/x86/include/asm/iosf_mbi.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/x86/include/asm/iosf_mbi.h b/arch/x86/include/asm/iosf_mbi.h index 7d87437bd030..3de0489deade 100644 --- a/arch/x86/include/asm/iosf_mbi.h +++ b/arch/x86/include/asm/iosf_mbi.h | |||
@@ -147,6 +147,18 @@ int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb); | |||
147 | int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb); | 147 | int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb); |
148 | 148 | ||
149 | /** | 149 | /** |
150 | * iosf_mbi_unregister_pmic_bus_access_notifier_unlocked - Unregister PMIC bus | ||
151 | * notifier, unlocked | ||
152 | * | ||
153 | * Like iosf_mbi_unregister_pmic_bus_access_notifier(), but for use when the | ||
154 | * caller has already called iosf_mbi_punit_acquire() itself. | ||
155 | * | ||
156 | * @nb: notifier_block to unregister | ||
157 | */ | ||
158 | int iosf_mbi_unregister_pmic_bus_access_notifier_unlocked( | ||
159 | struct notifier_block *nb); | ||
160 | |||
161 | /** | ||
150 | * iosf_mbi_call_pmic_bus_access_notifier_chain - Call PMIC bus notifier chain | 162 | * iosf_mbi_call_pmic_bus_access_notifier_chain - Call PMIC bus notifier chain |
151 | * | 163 | * |
152 | * @val: action to pass into listener's notifier_call function | 164 | * @val: action to pass into listener's notifier_call function |
@@ -154,6 +166,11 @@ int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb); | |||
154 | */ | 166 | */ |
155 | int iosf_mbi_call_pmic_bus_access_notifier_chain(unsigned long val, void *v); | 167 | int iosf_mbi_call_pmic_bus_access_notifier_chain(unsigned long val, void *v); |
156 | 168 | ||
169 | /** | ||
170 | * iosf_mbi_assert_punit_acquired - Assert that the P-Unit has been acquired. | ||
171 | */ | ||
172 | void iosf_mbi_assert_punit_acquired(void); | ||
173 | |||
157 | #else /* CONFIG_IOSF_MBI is not enabled */ | 174 | #else /* CONFIG_IOSF_MBI is not enabled */ |
158 | static inline | 175 | static inline |
159 | bool iosf_mbi_available(void) | 176 | bool iosf_mbi_available(void) |
@@ -197,12 +214,20 @@ int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb) | |||
197 | return 0; | 214 | return 0; |
198 | } | 215 | } |
199 | 216 | ||
217 | static inline int | ||
218 | iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb) | ||
219 | { | ||
220 | return 0; | ||
221 | } | ||
222 | |||
200 | static inline | 223 | static inline |
201 | int iosf_mbi_call_pmic_bus_access_notifier_chain(unsigned long val, void *v) | 224 | int iosf_mbi_call_pmic_bus_access_notifier_chain(unsigned long val, void *v) |
202 | { | 225 | { |
203 | return 0; | 226 | return 0; |
204 | } | 227 | } |
205 | 228 | ||
229 | static inline void iosf_mbi_assert_punit_acquired(void) {} | ||
230 | |||
206 | #endif /* CONFIG_IOSF_MBI */ | 231 | #endif /* CONFIG_IOSF_MBI */ |
207 | 232 | ||
208 | #endif /* IOSF_MBI_SYMS_H */ | 233 | #endif /* IOSF_MBI_SYMS_H */ |