Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [pathch] kernel/sched.c bogon?
@ 2003-03-07  1:01 Kip Walker
  2003-03-07  1:40 ` Jun Sun
  2003-04-25 15:28 ` Kip Walker
  0 siblings, 2 replies; 6+ messages in thread
From: Kip Walker @ 2003-03-07  1:01 UTC (permalink / raw)
  To: linux-mips


The comparisons of oldest_idle below trigger compiler warnings and
should probably be safely type-cast:

Kip

Index: kernel/sched.c
===================================================================
RCS file: /home/cvs/linux/kernel/sched.c,v
retrieving revision 1.64.2.6
diff -u -r1.64.2.6 sched.c
--- kernel/sched.c      25 Feb 2003 22:03:13 -0000      1.64.2.6
+++ kernel/sched.c      7 Mar 2003 00:57:35 -0000
@@ -282,7 +282,7 @@
                                target_tsk = tsk;
                        }
                } else {
-                       if (oldest_idle == -1ULL) {
+                       if (oldest_idle == (cycles_t) -1) {
                                int prio = preemption_goodness(tsk, p,
cpu);
 
                                if (prio > max_prio) {
@@ -294,7 +294,7 @@
        }
        tsk = target_tsk;
        if (tsk) {
-               if (oldest_idle != -1ULL) {
+               if (oldest_idle != (cycles_t) -1) {
                        best_cpu = tsk->processor;
                        goto send_now_idle;
                }

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

end of thread, other threads:[~2003-04-25 15:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-07  1:01 [pathch] kernel/sched.c bogon? Kip Walker
2003-03-07  1:40 ` Jun Sun
2003-03-10 12:55   ` Ralf Baechle
2003-03-10 17:59     ` Jun Sun
2003-04-24 17:03       ` Kip Walker
2003-04-25 15:28 ` Kip Walker

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