Re: [PATCH 1/2] arm64: entry: remove pointless SPSR mode check

2016-01-06 Thread Catalin Marinas
On Tue, Jan 05, 2016 at 05:33:34PM +, Mark Rutland wrote: > In work_pending we may skip work if the stacked SPSR value represents > anything other than an EL0 context. We then immediately invoke the > kernel_exit 0 macro as part of ret_to_user, assuming a return to EL0. > This is somewhat conf

[PATCH 1/2] arm64: entry: remove pointless SPSR mode check

2016-01-05 Thread Mark Rutland
In work_pending we may skip work if the stacked SPSR value represents anything other than an EL0 context. We then immediately invoke the kernel_exit 0 macro as part of ret_to_user, assuming a return to EL0. This is somewhat confusing. We use work_pending as part of the ret_to_user/ret_fast_syscal