rpms/kernel/devel linux-2.6-sched-cfs.patch,1.1,1.2

Dave Jones (davej) fedora-extras-commits at redhat.com
Sun Jun 17 23:41:43 UTC 2007


Author: davej

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1657

Modified Files:
	linux-2.6-sched-cfs.patch 
Log Message:
build fix

linux-2.6-sched-cfs.patch:

Index: linux-2.6-sched-cfs.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/linux-2.6-sched-cfs.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- linux-2.6-sched-cfs.patch	17 Jun 2007 19:49:03 -0000	1.1
+++ linux-2.6-sched-cfs.patch	17 Jun 2007 23:41:07 -0000	1.2
@@ -6361,3 +6361,30 @@
  		.ctl_name	= KERN_PANIC,
  		.procname	= "panic",
  		.data		= &panic_timeout,
+Index: linux/kernel/sched_debug.c
+===================================================================
+--- linux.orig/kernel/sched_debug.c
++++ linux/kernel/sched_debug.c
+@@ -104,10 +104,18 @@ static void print_rq_runtime_sum(struct 
+ static void print_cpu(struct seq_file *m, int cpu, u64 now)
+ {
+ 	struct rq *rq = &per_cpu(runqueues, cpu);
+-	unsigned int freq = cpu_khz ? : 1;
+ 
+-	SEQ_printf(m, "\ncpu#%d, %u.%03u MHz\n",
+-		   cpu, freq / 1000, (freq % 1000));
++#ifdef CONFIG_X86
++	{
++		unsigned int freq = cpu_khz ? : 1;
++
++		SEQ_printf(m, "\ncpu#%d, %u.%03u MHz\n",
++			   cpu, freq / 1000, (freq % 1000));
++	}
++#else
++	SEQ_printf(m, "\ncpu#%d\n", cpu);
++#endif
++
+ #define P(x) \
+ 	SEQ_printf(m, "  .%-30s: %Ld\n", #x, (long long)(rq->x))
+ 
+




More information about the fedora-extras-commits mailing list