mm: make wait_on_page_writeback() wait for multiple pending writebacks
[linux/fpc-iii.git] / arch / s390 / include / asm / runtime_instr.h
blob0e1605538cd47a61751e8da575e2b7e33d1f7ea0
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _RUNTIME_INSTR_H
3 #define _RUNTIME_INSTR_H
5 #include <uapi/asm/runtime_instr.h>
7 extern struct runtime_instr_cb runtime_instr_empty_cb;
9 static inline void save_ri_cb(struct runtime_instr_cb *cb_prev)
11 if (cb_prev)
12 store_runtime_instr_cb(cb_prev);
15 static inline void restore_ri_cb(struct runtime_instr_cb *cb_next,
16 struct runtime_instr_cb *cb_prev)
18 if (cb_next)
19 load_runtime_instr_cb(cb_next);
20 else if (cb_prev)
21 load_runtime_instr_cb(&runtime_instr_empty_cb);
24 struct task_struct;
26 void runtime_instr_release(struct task_struct *tsk);
28 #endif /* _RUNTIME_INSTR_H */