Release 4.14 arch/sh/include/asm/fpu.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_FPU_H
#define __ASM_SH_FPU_H
#ifndef __ASSEMBLY__
#include <asm/ptrace.h>
struct task_struct;
#ifdef CONFIG_SH_FPU
static inline void release_fpu(struct pt_regs *regs)
{
regs->sr |= SR_FD;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
static inline void grab_fpu(struct pt_regs *regs)
{
regs->sr &= ~SR_FD;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
extern void save_fpu(struct task_struct *__tsk);
extern void restore_fpu(struct task_struct *__tsk);
extern void fpu_state_restore(struct pt_regs *regs);
extern void __fpu_state_restore(void);
#else
#define save_fpu(tsk) do { } while (0)
#define restore_fpu(tsk) do { } while (0)
#define release_fpu(regs) do { } while (0)
#define grab_fpu(regs) do { } while (0)
#define fpu_state_restore(regs) do { } while (0)
#define __fpu_state_restore(regs) do { } while (0)
#endif
struct user_regset;
extern int do_fpu_inst(unsigned short, struct pt_regs *);
extern int init_fpu(struct task_struct *);
extern int fpregs_get(struct task_struct *target,
const struct user_regset *regset,
unsigned int pos, unsigned int count,
void *kbuf, void __user *ubuf);
static inline void __unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs)
{
if (task_thread_info(tsk)->status & TS_USEDFPU) {
task_thread_info(tsk)->status &= ~TS_USEDFPU;
save_fpu(tsk);
release_fpu(regs);
} else
tsk->thread.fpu_counter = 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 27 | 45.76% | 2 | 40.00% |
Stuart Menefy | 23 | 38.98% | 1 | 20.00% |
Giuseppe Cavallaro | 7 | 11.86% | 1 | 20.00% |
Vineet Gupta | 2 | 3.39% | 1 | 20.00% |
Total | 59 | 100.00% | 5 | 100.00% |
static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs)
{
preempt_disable();
__unlazy_fpu(tsk, regs);
preempt_enable();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Stuart Menefy | 26 | 86.67% | 1 | 50.00% |
Paul Mundt | 4 | 13.33% | 1 | 50.00% |
Total | 30 | 100.00% | 2 | 100.00% |
static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs)
{
preempt_disable();
if (task_thread_info(tsk)->status & TS_USEDFPU) {
task_thread_info(tsk)->status &= ~TS_USEDFPU;
release_fpu(regs);
}
preempt_enable();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 40 | 78.43% | 2 | 66.67% |
Stuart Menefy | 11 | 21.57% | 1 | 33.33% |
Total | 51 | 100.00% | 3 | 100.00% |
#endif /* __ASSEMBLY__ */
#endif /* __ASM_SH_FPU_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Mundt | 253 | 73.98% | 6 | 54.55% |
Stuart Menefy | 67 | 19.59% | 1 | 9.09% |
Giuseppe Cavallaro | 16 | 4.68% | 1 | 9.09% |
Ingo Molnar | 3 | 0.88% | 1 | 9.09% |
Vineet Gupta | 2 | 0.58% | 1 | 9.09% |
Greg Kroah-Hartman | 1 | 0.29% | 1 | 9.09% |
Total | 342 | 100.00% | 11 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.