DragonFly kernel List (threaded) for 2003-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Laptop getting hot
On Mon, Dec 29, 2003 at 04:04:40PM -0800, Matthew Dillon wrote:
>
> :
> :Speaking of 'hlt' instruction, if I revert the revision 1.22 of
> :sys/kern/lwkt_thread.c, the temperature stays low.
>
> 1.22? That's 24 versions down from the current version. Your kernel
> shouldn't compile with lwkt_thread.c out of sync that much :-).
No, I didn't say that I reverted to 1.22. What I meant was
`undo the change made in revision 1.22', or surround it by #ifdef SMP:
Index: lwkt_thread.c
===================================================================
RCS file: /home/source/dragonfly/cvs/src/sys/kern/lwkt_thread.c,v
retrieving revision 1.46
diff -u -r1.46 lwkt_thread.c
--- lwkt_thread.c 4 Dec 2003 20:09:33 -0000 1.46
+++ lwkt_thread.c 30 Dec 2003 02:35:47 -0000
@@ -509,8 +509,10 @@
* pending interrupts, spin in idle if so.
*/
ntd = &gd->gd_idlethread;
+#if SMP
if (gd->gd_reqflags)
ntd->td_flags |= TDF_IDLE_NOHLT;
+#endif
}
}
KASSERT(ntd->td_pri >= TDPRI_CRIT,
Obviously this doesn't help SMP or HTT kernel.
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]