On 05/12, Oleg Nesterov wrote: > > Do we need freezer? Should we freeze kernel threads? I can't judge. I tried > to read a long thread about suspend, and failed to understand it. > > I personally think we can simplify things if CPU-hotplug use freezer, at least. Just a small example, debug_smp_processor_id: /* * Kernel threads bound to a single CPU can safely use * smp_processor_id(): */ this_mask = cpumask_of_cpu(this_cpu); if (cpus_equal(current->cpus_allowed, this_mask)) goto out; This is not true with CONFIG_HOTPLUG_CPU. This becomes true if we freeze the kernel threads from CPU_DOWN_PREPARE to CPU_DEAD. Oleg. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/7] Freezer bugfixes
- From: "Rafael J. Wysocki" <[email protected]>
- [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: "Rafael J. Wysocki" <[email protected]>
- Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: Andrew Morton <[email protected]>
- Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: "Rafael J. Wysocki" <[email protected]>
- Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: Oleg Nesterov <[email protected]>
- Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: Oleg Nesterov <[email protected]>
- Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- From: Oleg Nesterov <[email protected]>
- [PATCH 0/7] Freezer bugfixes
- Prev by Date: Re: 2.6.21-mm2: HDAPS? BUG: at kernel/mutex.c:311
- Next by Date: Re: [PATCH] spelling fixes: arch/m68knommu/
- Previous by thread: Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- Next by thread: Re: [PATCH 1/7] Freezer: Read PF_BORROWED_MM in a nonracy way
- Index(es):