Re: [PATCH 02/10] kernel: entry: Expose helpers to migrate TIF to SYSCALL_WORK flags

2020-11-15 Thread Thomas Gleixner
On Sat, Nov 14 2020 at 11:22, Christoph Hellwig wrote: >> +#ifdef CONFIG_GENERIC_ENTRY >> +static inline void __set_task_syscall_work(struct thread_info *ti, int flag) >> +{ >> +set_bit(flag, (unsigned long *)>syscall_work); >> +} >> +static inline int __test_task_syscall_work(struct

Re: [PATCH 02/10] kernel: entry: Expose helpers to migrate TIF to SYSCALL_WORK flags

2020-11-14 Thread Christoph Hellwig
> +#ifdef CONFIG_GENERIC_ENTRY > +static inline void __set_task_syscall_work(struct thread_info *ti, int flag) > +{ > + set_bit(flag, (unsigned long *)>syscall_work); > +} > +static inline int __test_task_syscall_work(struct thread_info *ti, int flag) > +{ > + return test_bit(flag,

[PATCH 02/10] kernel: entry: Expose helpers to migrate TIF to SYSCALL_WORK flags

2020-11-13 Thread Gabriel Krisman Bertazi
With the goal to split the syscall work related flags into a separate field that is architecture independent, expose transitional helpers that resolve to either the TIF flags or to the corresponding SYSCALL_WORK flags. This will allow architectures to migrate only when they port to the generic