Re: [PATCH 1/3] m32r: Use generic PREEMPT config

From: Hirokazu Takata
Date: Wed Jul 06 2011 - 22:04:56 EST


From: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Subject: [PATCH 1/3] m32r: Use generic PREEMPT config
Date: Tue, 05 Jul 2011 18:04:26 +0200
> Use the generic preempt config definition in m32r instead of
> using a custom one.
>
> This also makes it handle the new CONFIG_PREEMPT_COUNT that
> need to be selected by CONFIG_PREEMPT.
>
> Without that it breaks
>
> kernel/sched.c: In function 'preempt_schedule':
> kernel/sched.c:4364: error: implicit declaration of function 'add_preempt_count_notrace'
> kernel/sched.c:4366: error: implicit declaration of function 'sub_preempt_count_notrace'
>
> Reported-by: Ingo Molnar <mingo@xxxxxxx>
> Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> Cc: Hirokazu Takata <takata@xxxxxxxxxxxxxx>

Acked-by: Hirokazu Takata <takata@xxxxxxxxxxxxxx>

Thank you.

> ---
> arch/m32r/Kconfig | 12 +-----------
> 1 files changed, 1 insertions(+), 11 deletions(-)
>
> diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig
> index 85b44e8..b92b944 100644
> --- a/arch/m32r/Kconfig
> +++ b/arch/m32r/Kconfig
> @@ -268,17 +268,7 @@ config SCHED_OMIT_FRAME_POINTER
> bool
> default y
>
> -config PREEMPT
> - bool "Preemptible Kernel"
> - help
> - This option reduces the latency of the kernel when reacting to
> - real-time or interactive events by allowing a low priority process to
> - be preempted even if it is in kernel mode executing a system call.
> - This allows applications to run more reliably even when the system is
> - under load.
> -
> - Say Y here if you are building a kernel for a desktop, embedded
> - or real-time system. Say N if you are unsure.
> +source "kernel/Kconfig.preempt"
>
> config SMP
> bool "Symmetric multi-processing support"
> --
> 1.7.5.4
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/