# Re: \[PATCH RT 7/9\]\[RFC\] \[PATCH 7/9\] cpu/rt: Rework cpu down for PREEMPT\_RT

- From: Steven Rostedt \<rostedt@goodmis.org\>
- Date: 2012-03-02 15:40:57 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2012/03/3830036
- Thread: https://ratatoskr.run/linux-rt-users/2012/03/3829562/t.md

```text
On Fri, 2012-03-02 at 10:36 -0500, Steven Rostedt wrote:
>  
> +#ifdef CONFIG_PREEMPT_RT_FULL
> +# define hotplug_lock() spin_lock(&cpu_hotplug.lock)
> +# define hotplug_unlock() spin_unlock(&cpu_hotplug.lock)
> +#else
> +# define hotplug_lock() mutex_lock(&cpu_hotplug.lock)
> +# define hotplug_lock() mutex_unlock(&cpu_hotplug.lock)

# define hotplug_unlock() mutex_unlock(&cpu_hotplug.lock)

Proof it doesn't comply.

-- Steve

> +#endif



```
