[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.6.2-rc1 / ACPI sleep / irqbalance / kirqd / pentium 4 HT problems on Uniwill N258SA0


Hi!

> >>Anyway, sleep/suspend/standby functionality (important to most laptop
> >>users, need to close the lid and go): This checkin to
> >>kernel/power/main.c seems to disable suspend with SMP (!?):
> >>
> >>--- 1.3/kernel/power/main.c	Sat Jan 24 20:44:47 2004
> >>+++ 1.4/kernel/power/main.c	Sat Jan 24 20:44:47 2004
> >>@@ -172,6 +172,12 @@
> >> 	if (down_trylock(&pm_sem))
> >> 		return -EBUSY;
> >>
> >>+	/* Suspend is hard to get right on SMP. */
> >>+	if (num_online_cpus() != 1) {
> >>+		error = -EPERM;
> >>+		goto Unlock;
> >>+	}
> >>+
> >> 	if ((error = suspend_prepare(state)))
> >> 		goto Unlock;
> >>
> >>... which, given the prevalence of hyperthreaded CPUs on laptops, is
> >>fighting a trend. I backed out the above with a #if 0 then tried echo -n
> >>1>/proc/acpi/sleep again. This time I got:
> >
> >
> > Well, no sleep developers have SMP or HT machines, AFAICT.
> >
> > If you back that out... well you are on your own.
> 
> Just a random thought: if I understand it correctly, CPU hotplugging is 
> intended to be able to take CPUs online and offline one by one, am I 
> right? Well, when that infrastructure's ready, this can probably be made 
> to work for SMP by taking all the other CPUs offline first. They're all 
> going to go offline because of the suspend anyway, so it shouldn't make 
> much difference. :)

That was original plan, but CPU hotplug is unlikely to get into 2.6,
AFAICT. (And Nigel has another solution).

								Pavel

-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: