Re: [PATCH] x86/debug: Allow a single level of #DB recursion

From: peterz
Date: Thu Aug 20 2020 - 04:44:56 EST


On Wed, Aug 19, 2020 at 05:15:43PM -0700, Andy Lutomirski wrote:
> +static __always_inline void debug_enter(unsigned long *dr6, unsigned long *dr7)
> +{
> + *dr6 = debug_read_clear_dr6();
> }
>
> static __always_inline void debug_exit(unsigned long dr7)
> {
> - local_db_restore(dr7);
> }

That's all unused after this patch, might as well remove it.