public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] more sched.h reorganization
@ 2013-02-20 15:19 Clark Williams
  2013-02-20 15:19 ` [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h Clark Williams
  2013-02-20 15:19 ` [PATCH 2/2] sched: move clock definitions from sched.h to new file Clark Williams
  0 siblings, 2 replies; 7+ messages in thread
From: Clark Williams @ 2013-02-20 15:19 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Clark Williams, Peter Zijlstra, Thomas Gleixner, Ingo Molnar,
	Steven Rostedt, LKML

Ingo,

These two patches continue the sched.h reorganizatin. The first is a simple
move of the RR_TIMESLICE definition from sysctl to rt.h. 

The second moves the clock-related items from sched.h into sched/clock.h

Tested against allmodconfigs for x86_64, arm, mips, alpha and ia64.

Clark Williams (2):
  sched: move RR_TIMESLICE from sysctl.h to rt.h
  sched: move clock definitions from sched.h to new file

 arch/arm/kernel/sched_clock.c |  2 +-
 arch/x86/kernel/cpu/amd.c     |  2 +-
 arch/x86/kernel/cpu/intel.c   |  2 +-
 arch/x86/kernel/tsc.c         |  2 +-
 drivers/acpi/apei/ghes.c      |  1 +
 drivers/acpi/processor_idle.c |  2 +-
 fs/bio-integrity.c            |  1 +
 include/linux/blkdev.h        |  2 +-
 include/linux/ftrace.h        |  2 +-
 include/linux/sched.h         | 61 -------------------------------------------
 include/linux/sched/rt.h      |  6 +++++
 include/linux/sched/sysctl.h  |  6 -----
 init/do_mounts.c              |  2 +-
 init/do_mounts_initrd.c       |  2 +-
 init/main.c                   |  2 +-
 kernel/events/core.c          |  1 +
 kernel/lockdep.c              |  2 +-
 kernel/printk.c               |  1 +
 kernel/rcutorture.c           |  2 +-
 kernel/sched/sched.h          |  1 +
 kernel/time/tick-sched.c      |  2 +-
 kernel/trace/ring_buffer.c    |  1 +
 kernel/trace/trace_clock.c    |  2 +-
 kernel/watchdog.c             |  1 +
 lib/plist.c                   |  2 +-
 25 files changed, 28 insertions(+), 82 deletions(-)

-- 
1.8.1.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h
  2013-02-20 15:19 [PATCH 0/2] more sched.h reorganization Clark Williams
@ 2013-02-20 15:19 ` Clark Williams
  2013-02-20 17:02   ` Tony Luck
  2013-02-22 12:43   ` [tip:sched/urgent] sched: Move " tip-bot for Clark Williams
  2013-02-20 15:19 ` [PATCH 2/2] sched: move clock definitions from sched.h to new file Clark Williams
  1 sibling, 2 replies; 7+ messages in thread
From: Clark Williams @ 2013-02-20 15:19 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Clark Williams, Peter Zijlstra, Thomas Gleixner, Ingo Molnar,
	Steven Rostedt, LKML

Signed-off-by: Clark Williams <clark.williams@gmail.com>
---
 include/linux/sched/rt.h     | 6 ++++++
 include/linux/sched/sysctl.h | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/linux/sched/rt.h b/include/linux/sched/rt.h
index 94e19ea..440434d 100644
--- a/include/linux/sched/rt.h
+++ b/include/linux/sched/rt.h
@@ -55,4 +55,10 @@ static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
 extern void normalize_rt_tasks(void);
 
 
+/*
+ * default timeslice is 100 msecs (used only for SCHED_RR tasks).
+ * Timeslices get refilled after they expire.
+ */
+#define RR_TIMESLICE		(100 * HZ / 1000)
+
 #endif /* _SCHED_RT_H */
diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h
index d2bb0ae..bf8086b 100644
--- a/include/linux/sched/sysctl.h
+++ b/include/linux/sched/sysctl.h
@@ -91,12 +91,6 @@ extern unsigned int sysctl_sched_cfs_bandwidth_slice;
 extern unsigned int sysctl_sched_autogroup_enabled;
 #endif
 
-/*
- * default timeslice is 100 msecs (used only for SCHED_RR tasks).
- * Timeslices get refilled after they expire.
- */
-#define RR_TIMESLICE		(100 * HZ / 1000)
-
 extern int sched_rr_timeslice;
 
 extern int sched_rr_handler(struct ctl_table *table, int write,
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] sched: move clock definitions from sched.h to new file
  2013-02-20 15:19 [PATCH 0/2] more sched.h reorganization Clark Williams
  2013-02-20 15:19 ` [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h Clark Williams
@ 2013-02-20 15:19 ` Clark Williams
  1 sibling, 0 replies; 7+ messages in thread
From: Clark Williams @ 2013-02-20 15:19 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Clark Williams, Peter Zijlstra, Thomas Gleixner, Ingo Molnar,
	Steven Rostedt, LKML

Move the various scheduler clock definitions out of include/linux/sched.h
into a new file include/linux/sched/clock.h.

Signed-off-by: Clark Williams <clark.williams@gmail.com>
---
 arch/arm/kernel/sched_clock.c |  2 +-
 arch/x86/kernel/cpu/amd.c     |  2 +-
 arch/x86/kernel/cpu/intel.c   |  2 +-
 arch/x86/kernel/tsc.c         |  2 +-
 drivers/acpi/apei/ghes.c      |  1 +
 drivers/acpi/processor_idle.c |  2 +-
 fs/bio-integrity.c            |  1 +
 include/linux/blkdev.h        |  2 +-
 include/linux/ftrace.h        |  2 +-
 include/linux/sched.h         | 61 -------------------------------------------
 init/do_mounts.c              |  2 +-
 init/do_mounts_initrd.c       |  2 +-
 init/main.c                   |  2 +-
 kernel/events/core.c          |  1 +
 kernel/lockdep.c              |  2 +-
 kernel/printk.c               |  1 +
 kernel/rcutorture.c           |  2 +-
 kernel/sched/sched.h          |  1 +
 kernel/time/tick-sched.c      |  2 +-
 kernel/trace/ring_buffer.c    |  1 +
 kernel/trace/trace_clock.c    |  2 +-
 kernel/watchdog.c             |  1 +
 lib/plist.c                   |  2 +-
 23 files changed, 22 insertions(+), 76 deletions(-)

diff --git a/arch/arm/kernel/sched_clock.c b/arch/arm/kernel/sched_clock.c
index fc6692e..8e6f986 100644
--- a/arch/arm/kernel/sched_clock.c
+++ b/arch/arm/kernel/sched_clock.c
@@ -10,7 +10,7 @@
 #include <linux/jiffies.h>
 #include <linux/kernel.h>
 #include <linux/moduleparam.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/syscore_ops.h>
 #include <linux/timer.h>
 
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index e3b01e5..f4838e9 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -5,7 +5,7 @@
 #include <linux/mm.h>
 
 #include <linux/io.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <asm/processor.h>
 #include <asm/apic.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index 1905ce9..e7fc935 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -4,7 +4,7 @@
 #include <linux/string.h>
 #include <linux/bitops.h>
 #include <linux/smp.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/thread_info.h>
 #include <linux/module.h>
 #include <linux/uaccess.h>
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index 4b9ea10..9a72176 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -1,7 +1,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/kernel.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/timer.h>
diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
index 7ae2750..eec858d 100644
--- a/drivers/acpi/apei/ghes.c
+++ b/drivers/acpi/apei/ghes.c
@@ -48,6 +48,7 @@
 #include <linux/genalloc.h>
 #include <linux/pci.h>
 #include <linux/aer.h>
+#include <linux/sched/clock.h>
 #include <acpi/apei.h>
 #include <acpi/hed.h>
 #include <asm/mce.h>
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index ed9a1cc..f68208a 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -36,7 +36,7 @@
 #include <linux/acpi.h>
 #include <linux/dmi.h>
 #include <linux/moduleparam.h>
-#include <linux/sched.h>	/* need_resched() */
+#include <linux/sched/clock.h>
 #include <linux/pm_qos.h>
 #include <linux/clockchips.h>
 #include <linux/cpuidle.h>
diff --git a/fs/bio-integrity.c b/fs/bio-integrity.c
index a3f28f3..090b64d 100644
--- a/fs/bio-integrity.c
+++ b/fs/bio-integrity.c
@@ -26,6 +26,7 @@
 #include <linux/bio.h>
 #include <linux/workqueue.h>
 #include <linux/slab.h>
+#include <linux/sched/clock.h>
 
 struct integrity_slab {
 	struct kmem_cache *slab;
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index f94bc83..89f9b7d 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1,7 +1,7 @@
 #ifndef _LINUX_BLKDEV_H
 #define _LINUX_BLKDEV_H
 
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 
 #ifdef CONFIG_BLOCK
 
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index e5ca8ef..625c2c2 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -12,7 +12,7 @@
 #include <linux/bitops.h>
 #include <linux/ptrace.h>
 #include <linux/ktime.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/types.h>
 #include <linux/init.h>
 #include <linux/fs.h>
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 33cc421..54624e7 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1926,64 +1926,6 @@ static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask)
 }
 #endif
 
-/*
- * Do not use outside of architecture code which knows its limitations.
- *
- * sched_clock() has no promise of monotonicity or bounded drift between
- * CPUs, use (which you should not) requires disabling IRQs.
- *
- * Please use one of the three interfaces below.
- */
-extern unsigned long long notrace sched_clock(void);
-/*
- * See the comment in kernel/sched/clock.c
- */
-extern u64 cpu_clock(int cpu);
-extern u64 local_clock(void);
-extern u64 sched_clock_cpu(int cpu);
-
-
-extern void sched_clock_init(void);
-
-#ifndef CONFIG_HAVE_UNSTABLE_SCHED_CLOCK
-static inline void sched_clock_tick(void)
-{
-}
-
-static inline void sched_clock_idle_sleep_event(void)
-{
-}
-
-static inline void sched_clock_idle_wakeup_event(u64 delta_ns)
-{
-}
-#else
-/*
- * Architectures can set this to 1 if they have specified
- * CONFIG_HAVE_UNSTABLE_SCHED_CLOCK in their arch Kconfig,
- * but then during bootup it turns out that sched_clock()
- * is reliable after all:
- */
-extern int sched_clock_stable;
-
-extern void sched_clock_tick(void);
-extern void sched_clock_idle_sleep_event(void);
-extern void sched_clock_idle_wakeup_event(u64 delta_ns);
-#endif
-
-#ifdef CONFIG_IRQ_TIME_ACCOUNTING
-/*
- * An i/f to runtime opt-in for irq time accounting based off of sched_clock.
- * The reason for this explicit opt-in is not to have perf penalty with
- * slow sched_clocks.
- */
-extern void enable_sched_clock_irqtime(void);
-extern void disable_sched_clock_irqtime(void);
-#else
-static inline void enable_sched_clock_irqtime(void) {}
-static inline void disable_sched_clock_irqtime(void) {}
-#endif
-
 extern unsigned long long
 task_sched_runtime(struct task_struct *task);
 
@@ -1994,9 +1936,6 @@ extern void sched_exec(void);
 #define sched_exec()   {}
 #endif
 
-extern void sched_clock_idle_sleep_event(void);
-extern void sched_clock_idle_wakeup_event(u64 delta_ns);
-
 #ifdef CONFIG_HOTPLUG_CPU
 extern void idle_task_exit(void);
 #else
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 1d1b634..e50ec77 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -9,7 +9,7 @@
 #endif
 
 #include <linux/module.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/ctype.h>
 #include <linux/fd.h>
 #include <linux/tty.h>
diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c
index f9acf71..5e081f2 100644
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
@@ -14,7 +14,7 @@
 #include <linux/minix_fs.h>
 #include <linux/romfs_fs.h>
 #include <linux/initrd.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/freezer.h>
 #include <linux/kmod.h>
 
diff --git a/init/main.c b/init/main.c
index cee4b5c..a3129b1 100644
--- a/init/main.c
+++ b/init/main.c
@@ -57,7 +57,7 @@
 #include <linux/pid_namespace.h>
 #include <linux/device.h>
 #include <linux/kthread.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/signal.h>
 #include <linux/idr.h>
 #include <linux/kgdb.h>
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 5c75791..0b2ef1c 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -37,6 +37,7 @@
 #include <linux/ftrace_event.h>
 #include <linux/hw_breakpoint.h>
 #include <linux/mm_types.h>
+#include <linux/sched/clock.h>
 
 #include "internal.h"
 
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index 8a0efac..9e939ba 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -27,7 +27,7 @@
  */
 #define DISABLE_BRANCH_PROFILING
 #include <linux/mutex.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/delay.h>
 #include <linux/module.h>
 #include <linux/proc_fs.h>
diff --git a/kernel/printk.c b/kernel/printk.c
index 2c1ccb5..2929bfc 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -43,6 +43,7 @@
 #include <linux/rculist.h>
 #include <linux/poll.h>
 #include <linux/irq_work.h>
+#include <linux/sched/clock.h>
 
 #include <asm/uaccess.h>
 
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index e1f3a8c..424796d 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -32,7 +32,7 @@
 #include <linux/smp.h>
 #include <linux/rcupdate.h>
 #include <linux/interrupt.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/completion.h>
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index cc03cfd..855ea5d 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -2,6 +2,7 @@
 #include <linux/sched.h>
 #include <linux/sched/sysctl.h>
 #include <linux/sched/rt.h>
+#include <linux/sched/clock.h>
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
 #include <linux/stop_machine.h>
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 314b9ee..fc52f04 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -18,7 +18,7 @@
 #include <linux/kernel_stat.h>
 #include <linux/percpu.h>
 #include <linux/profile.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/module.h>
 #include <linux/irq_work.h>
 
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 7244acd..03f006c 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -21,6 +21,7 @@
 #include <linux/list.h>
 #include <linux/cpu.h>
 #include <linux/fs.h>
+#include <linux/sched/clock.h>
 
 #include <asm/local.h>
 
diff --git a/kernel/trace/trace_clock.c b/kernel/trace/trace_clock.c
index aa8f5f4..ac7b6a6 100644
--- a/kernel/trace/trace_clock.c
+++ b/kernel/trace/trace_clock.c
@@ -17,7 +17,7 @@
 #include <linux/hardirq.h>
 #include <linux/module.h>
 #include <linux/percpu.h>
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/ktime.h>
 #include <linux/trace_clock.h>
 
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 4a94467..997cc573 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -24,6 +24,7 @@
 #include <linux/sysctl.h>
 #include <linux/smpboot.h>
 #include <linux/sched/rt.h>
+#include <linux/sched/clock.h>
 
 #include <asm/irq_regs.h>
 #include <linux/kvm_para.h>
diff --git a/lib/plist.c b/lib/plist.c
index 1ebc95f..619910c 100644
--- a/lib/plist.c
+++ b/lib/plist.c
@@ -135,7 +135,7 @@ void plist_del(struct plist_node *node, struct plist_head *head)
 }
 
 #ifdef CONFIG_DEBUG_PI_LIST
-#include <linux/sched.h>
+#include <linux/sched/clock.h>
 #include <linux/module.h>
 #include <linux/init.h>
 
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h
  2013-02-20 15:19 ` [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h Clark Williams
@ 2013-02-20 17:02   ` Tony Luck
  2013-02-20 17:50     ` Ingo Molnar
  2013-02-22 12:43   ` [tip:sched/urgent] sched: Move " tip-bot for Clark Williams
  1 sibling, 1 reply; 7+ messages in thread
From: Tony Luck @ 2013-02-20 17:02 UTC (permalink / raw)
  To: Clark Williams, Linus Torvalds
  Cc: Ingo Molnar, Peter Zijlstra, Thomas Gleixner, Ingo Molnar,
	Steven Rostedt, LKML

On Wed, Feb 20, 2013 at 7:19 AM, Clark Williams
<clark.williams@gmail.com> wrote:
> Signed-off-by: Clark Williams <clark.williams@gmail.com>
> ---

This happens to unbreak the ia64 build which is currently grumbling about:

arch/ia64/kernel/init_task.c:38: error: 'RR_TIMESLICE' undeclared here
(not in a function)

So I'd be happy if it got applied directly to Linus tree before I get too big of
a bisection gap.

Acked-by: Tony Luck <tony.luck@intel.com>

>  include/linux/sched/rt.h     | 6 ++++++
>  include/linux/sched/sysctl.h | 6 ------
>  2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/include/linux/sched/rt.h b/include/linux/sched/rt.h
> index 94e19ea..440434d 100644
> --- a/include/linux/sched/rt.h
> +++ b/include/linux/sched/rt.h
> @@ -55,4 +55,10 @@ static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
>  extern void normalize_rt_tasks(void);
>
>
> +/*
> + * default timeslice is 100 msecs (used only for SCHED_RR tasks).
> + * Timeslices get refilled after they expire.
> + */
> +#define RR_TIMESLICE           (100 * HZ / 1000)
> +
>  #endif /* _SCHED_RT_H */
> diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h
> index d2bb0ae..bf8086b 100644
> --- a/include/linux/sched/sysctl.h
> +++ b/include/linux/sched/sysctl.h
> @@ -91,12 +91,6 @@ extern unsigned int sysctl_sched_cfs_bandwidth_slice;
>  extern unsigned int sysctl_sched_autogroup_enabled;
>  #endif
>
> -/*
> - * default timeslice is 100 msecs (used only for SCHED_RR tasks).
> - * Timeslices get refilled after they expire.
> - */
> -#define RR_TIMESLICE           (100 * HZ / 1000)
> -
>  extern int sched_rr_timeslice;
>
>  extern int sched_rr_handler(struct ctl_table *table, int write,
> --
> 1.8.1.2
>
> --

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h
  2013-02-20 17:02   ` Tony Luck
@ 2013-02-20 17:50     ` Ingo Molnar
  2013-02-20 19:17       ` Tony Luck
  0 siblings, 1 reply; 7+ messages in thread
From: Ingo Molnar @ 2013-02-20 17:50 UTC (permalink / raw)
  To: Tony Luck
  Cc: Clark Williams, Linus Torvalds, Peter Zijlstra, Thomas Gleixner,
	Ingo Molnar, Steven Rostedt, LKML


* Tony Luck <tony.luck@gmail.com> wrote:

> On Wed, Feb 20, 2013 at 7:19 AM, Clark Williams
> <clark.williams@gmail.com> wrote:
> > Signed-off-by: Clark Williams <clark.williams@gmail.com>
> > ---
> 
> This happens to unbreak the ia64 build which is currently grumbling about:
> 
> arch/ia64/kernel/init_task.c:38: error: 'RR_TIMESLICE' undeclared here
> (not in a function)
> 
> So I'd be happy if it got applied directly to Linus tree before I get too big of
> a bisection gap.

Hm, didn't it get fixed via the commit below?

Thanks,

	Ingo

--------------------->
commit 77852fea6e2442a0e654a9292060489895de18c7
Author: Ingo Molnar <mingo@kernel.org>
Date:   Sat Feb 16 09:46:48 2013 +0100

    sched/rt: Add <linux/sched/rt.h> header to <linux/init_task.h>
    
    IA64 relied on it through sched.h inclusion:
    
      arch/ia64/kernel/init_task.c:38:11: error: 'MAX_PRIO' undeclared here (not in a function)
      arch/ia64/kernel/init_task.c:38:11: error: 'RR_TIMESLICE' undeclared here (not in a function)
    
    Reported-by: kbuild test robot <fengguang.wu@intel.com>
    Cc: Clark Williams <williams@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Link: http://lkml.kernel.org/n/tip-xaan1twswggedMR0airtpjui@git.kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h
  2013-02-20 17:50     ` Ingo Molnar
@ 2013-02-20 19:17       ` Tony Luck
  0 siblings, 0 replies; 7+ messages in thread
From: Tony Luck @ 2013-02-20 19:17 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Clark Williams, Linus Torvalds, Peter Zijlstra, Thomas Gleixner,
	Ingo Molnar, Steven Rostedt, LKML

On Wed, Feb 20, 2013 at 9:50 AM, Ingo Molnar <mingo@kernel.org> wrote:
> Hm, didn't it get fixed via the commit below?

Together with moving RR_TIMESLICE to rt.h ... ia64 is good. But I
see commit 77852fea6e24 in the tree I built and still see the
RR_TIMESLICE errors.

I don't see the MAX_PRIO half of the problem - so it did help a bit.

-Tony

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [tip:sched/urgent] sched: Move RR_TIMESLICE from sysctl.h to rt.h
  2013-02-20 15:19 ` [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h Clark Williams
  2013-02-20 17:02   ` Tony Luck
@ 2013-02-22 12:43   ` tip-bot for Clark Williams
  1 sibling, 0 replies; 7+ messages in thread
From: tip-bot for Clark Williams @ 2013-02-22 12:43 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, peterz, tony.luck, clark.williams,
	rostedt, tglx

Commit-ID:  45ebd3945b2a3cf4eb89d5fb0090a3cb71af7973
Gitweb:     http://git.kernel.org/tip/45ebd3945b2a3cf4eb89d5fb0090a3cb71af7973
Author:     Clark Williams <clark.williams@gmail.com>
AuthorDate: Wed, 20 Feb 2013 09:19:09 -0600
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Fri, 22 Feb 2013 10:44:46 +0100

sched: Move RR_TIMESLICE from sysctl.h to rt.h

This fixes an ia64 build bug reported by Tony Luck.

Reported-by: Tony Luck <tony.luck@gmail.com>
Signed-off-by: Clark Williams <clark.williams@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1361373550-4011-2-git-send-email-clark.williams@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 include/linux/sched/rt.h     | 6 ++++++
 include/linux/sched/sysctl.h | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/linux/sched/rt.h b/include/linux/sched/rt.h
index 94e19ea..440434d 100644
--- a/include/linux/sched/rt.h
+++ b/include/linux/sched/rt.h
@@ -55,4 +55,10 @@ static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
 extern void normalize_rt_tasks(void);
 
 
+/*
+ * default timeslice is 100 msecs (used only for SCHED_RR tasks).
+ * Timeslices get refilled after they expire.
+ */
+#define RR_TIMESLICE		(100 * HZ / 1000)
+
 #endif /* _SCHED_RT_H */
diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h
index d2bb0ae..bf8086b 100644
--- a/include/linux/sched/sysctl.h
+++ b/include/linux/sched/sysctl.h
@@ -91,12 +91,6 @@ extern unsigned int sysctl_sched_cfs_bandwidth_slice;
 extern unsigned int sysctl_sched_autogroup_enabled;
 #endif
 
-/*
- * default timeslice is 100 msecs (used only for SCHED_RR tasks).
- * Timeslices get refilled after they expire.
- */
-#define RR_TIMESLICE		(100 * HZ / 1000)
-
 extern int sched_rr_timeslice;
 
 extern int sched_rr_handler(struct ctl_table *table, int write,

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-22 12:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20 15:19 [PATCH 0/2] more sched.h reorganization Clark Williams
2013-02-20 15:19 ` [PATCH 1/2] sched: move RR_TIMESLICE from sysctl.h to rt.h Clark Williams
2013-02-20 17:02   ` Tony Luck
2013-02-20 17:50     ` Ingo Molnar
2013-02-20 19:17       ` Tony Luck
2013-02-22 12:43   ` [tip:sched/urgent] sched: Move " tip-bot for Clark Williams
2013-02-20 15:19 ` [PATCH 2/2] sched: move clock definitions from sched.h to new file Clark Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox