[Devel] Re: [PATCH 2/6] Container Freezer: Make refrigerator always available
Rafael J. Wysocki
rjw at sisk.pl
Fri Aug 1 15:53:17 PDT 2008
On Friday, 1 of August 2008, Matt Helsley wrote:
>
> On Fri, 2008-08-01 at 16:27 +-0200, Thomas Petazzoni wrote:
> > Hi,
> >
> > Le Thu, 31 Jul 2008 22:07:01 -0700,
> > Matt Helsley <matthltc at us.ibm.com> a +AOk-crit :
> >
> > > --- a/kernel/Makefile
> > > +-+-+- b/kernel/Makefile
> > > @@ -5,7 +-5,7 @@
> > > obj-y = sched.o fork.o exec_domain.o panic.o printk.o +AFw
> > > cpu.o exit.o itimer.o time.o softirq.o resource.o +AFw
> > > sysctl.o capability.o ptrace.o timer.o user.o +AFw
> > > - signal.o sys.o kmod.o workqueue.o pid.o +AFw
> > > +- signal.o sys.o kmod.o workqueue.o pid.o freezer.o +AFw
> >
> > I have the impression that the code in kernel/power/process.c was
> > compiled only if CONFIG_PM_SLEEP was set. Now that the code has been
> > moved to kernel/freezer.c, it is unconditionnaly compiled in every
> > kernel. Is that correct ?
> >
> > If so, is it possible to put this new feature under some
> > CONFIG_SOMETHING option, for people who care about the kernel size ?
>
> How about making it depend on a combination of CONFIG variables?
> Here's an RFC PATCH. Completely untested.
>
> Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
Can you please also make the contents of include/linux/freezer.h depend on
CONFIG_FREEZER instead of CONFIG_PM_SLEEP?
Also, I'm not really sure if kernel/power/Kconfig is the right place to define
CONFIG_FREEZER.
Perhaps we should even move freezer.c from kernel/power to kernel
and define CONFIG_FREEZER in Kconfig in there. Andrew, what do you think?
> ---
> kernel/Makefile | 3 +-+--
> kernel/power/Kconfig | 3 +-+-+-
> 2 files changed, 5 insertions(+-), 1 deletion(-)
>
> Index: linux-2.6.27-rc1-mm1/kernel/Makefile
> ===================================================================
> --- linux-2.6.27-rc1-mm1.orig/kernel/Makefile
> +-+-+- linux-2.6.27-rc1-mm1/kernel/Makefile
> @@ -5,7 +-5,7 @@
> obj-y = sched.o fork.o exec_domain.o panic.o printk.o +AFw
> cpu.o exit.o itimer.o time.o softirq.o resource.o +AFw
> sysctl.o capability.o ptrace.o timer.o user.o +AFw
> - signal.o sys.o kmod.o workqueue.o pid.o freezer.o +AFw
> +- signal.o sys.o kmod.o workqueue.o pid.o +AFw
> rcupdate.o extable.o params.o posix-timers.o +AFw
> kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o +AFw
> hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o +AFw
> @@ -24,6 +-24,7 @@ CFLAGS_REMOVE_sched_clock.o = -pg
> CFLAGS_REMOVE_sched.o = -mno-spe -pg
> endif
>
> +-obj-$(CONFIG_FREEZER) +-= freezer.o
> obj-$(CONFIG_PROFILING) +-= profile.o
> obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) +-= sysctl_check.o
> obj-$(CONFIG_STACKTRACE) +-= stacktrace.o
> Index: linux-2.6.27-rc1-mm1/kernel/power/Kconfig
> ===================================================================
> --- linux-2.6.27-rc1-mm1.orig/kernel/power/Kconfig
> +-+-+- linux-2.6.27-rc1-mm1/kernel/power/Kconfig
> @@ -85,6 +-85,9 @@ config PM_SLEEP
> depends on SUSPEND || HIBERNATION || XEN_SAVE_RESTORE
> default y
>
> +-config FREEZER
> +- def_bool PM_SLEEP || CGROUP_FREEZER
> +-
> config SUSPEND
> bool "Suspend to RAM and standby"
> depends on PM && ARCH_SUSPEND_POSSIBLE
>
>
>
>
>
¹þÿ°þÿ ¦þÿ þÿ þÿ þÿ `âÿ #: #' # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ýýûXÓÌÎÿýýüÿýýüÿÍÆÉÿýýûÿýýüÿýýûÿÑÊÍÿòîïÿýýüÿýýüÿþþýÿÔÍÐÿÕÏÒÿðèéÿöïïÿöïðÿöïïÿöïïÿͼ¿ÿn}ÿ Fÿ0µÿ8¡Õÿ@³îÿE¿úÿìþÿ@Íþÿ1Åþÿºþÿ
°þÿ «þÿ ¢þÿ þÿ þÿ þÿ Zàÿ #A #/ # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ þþýýýûâÔÍÏÿüüúÿÎÇÊÿüûúÿüûúÿüûúÿüûúÿÒËÎÿóîîÿýýüÿÔÍÐÿÕÎÑÿõññÿùôôÿôìíÿõîïÿõíîÿôììÿíãäÿ©ÿ%rÿ -oÿ Kÿ7§Þÿ=·ôÿD¿üÿéþÿ4Åþÿ!¼þÿ´þÿ ¬þÿ £þÿ þÿ þÿ þÿ þÿ Wâÿ #D #2 # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ üüúvÓÌÎÿñììÿüûúÿÏÇÊÿüûúÿüûúÿüûúÿüûúÿÓÌÏÿóîîÿÔÍÐÿôïðÿüûúÿöððÿòéêÿôìíÿôììÿòèèÿôììÿ¾«ÿp}ÿ!qÿ 6sÿ 9~ÿ \³ÿ:ºùÿ?¿þÿ
åþÿ%¿þÿ¶þÿ ¬þÿ ¤þÿ þÿ þÿ þÿ þÿ zþÿ Sâÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ üüúÓÌÎùÖÏÑÿûúøÿÏÇÊÿûúøÿûúùÿûúøÿûúùÿûûùÿÓÌÏÿòíîÿýýûÿú÷öÿôìíÿñçèÿóêëÿòèéÿðååÿñèçÿáÔÕÿvxÿmÿsÿ 7vÿ Fvÿ Gÿ gÉÿ;»þÿ{ßþÿ¸þÿ¬þÿ ¥þÿ þÿ þÿ þÿ þÿ {þÿ rþÿ Pàÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ûúøÔÍÏÿðêêÿúù÷ÿÏÇÊÿúø÷ÿúø÷ÿûúøÿûúøÿûúøÿÕÍÐÿòííÿöñðÿñçèÿñæçÿñçèÿñææÿîââÿðååÿñèçÿÿorÿmÿu¤ÿa§ÿ Dxÿ Zÿ P®ÿ kÎÿsÛþÿ®þÿ ¦þÿ þÿ þÿ þÿ
þÿ }þÿ tþÿ lþÿ Màÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ ûûø.ÔÍÏýÖÏÑÿúøöÿúøöÿúøöÿúøöÿúøöÿúø÷ÿúù÷ÿúù÷ÿÓÉÌÿéÝßÿïãäÿðåæÿðåæÿîââÿíààÿïããÿðæåÿàÓÓÿvxÿiÿoÿwªÿ¿ÿr¦Äÿ Uÿ f³ÿ T¶ÿ tâÿ pâÿ lâÿ hâÿ dâÿ `àÿ Zâÿ Vâÿ Ràÿ Màÿ ?Åÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ úùö½×ÐÒÿïêéÿúøöÿù÷õÿúøöÿúøöÿúøöÿúøöÿ÷òñÿòééÿÒÂÆÿå×ÙÿïãäÿîáâÿëÜÜÿìÞÞÿíßßÿîââÿïäãÿ¯ÿmoÿjÿp£ÿz±ÿÅÿÝÿ¼âÿ a³ÿ mÂÿ Úÿ Ýÿ éÿ òÿ úÿ þÿ þÿmÚÿLzw #J #H #> #. # #ÿÿÿ ÿÿÿ ù÷õS×ÐÒÿúùöÿøöóÿù÷ôÿù÷ôÿù÷ôÿù÷õÿöðïÿñççÿíàáÿíàáÿνÁÿàÐÒÿêÚÚÿêÚÚÿêÜÛÿëÝÜÿíàßÿíáàÿÝÏÏÿuxÿhÿjÿr©ÿ¹ÿËÿàÿ §ôÿÉóÿ kÅÿ ~Úÿ âÿ
ìÿ òÿ üÿ þÿ þÿ iÚÿmÛÿOzt #? #3 #$ # #ÿÿÿ ÷õñ÷õò׺°´ÿîçæÿøöóÿøõóÿöðïÿòêéÿïããÿëÜÝÿéÙÚÿèØÙÿè××ÿº¥©ÿÕÂÄÿéÙÙÿêÛÛÿêÜÛÿëÝÜÿìßÞÿíâàÿ®ÿjnÿfÿk£ÿ u°ÿ
¿ÿÏÿáÿ ©ôÿ+²ýÿÎüÿ xÚÿ zßÿ éÿ õÿ üÿ þÿ þÿ þÿ zìÿjÜÿW®l #& # #
#ÿÿÿ öô𶩫üÁ·¹ÿ¾°³ÿ»ª®ÿº¦ªÿ²ÿ²ÿ®ÿ«ÿ«ÿ¤ÿ®ÿ¹¥©ÿÖÄÆÿéÚÙÿêÛÚÿëÝÜÿëÞÝÿìàÞÿÛÌÌÿtxÿhÿhÿn©ÿx¸ÿÅÿÒÿâÿ!«ôÿ/·ýÿ8¹þÿ¾ýþÿ¸øþÿ°õþÿ©òþÿ îþÿéþÿåþÿâþÿÝþÿxÙþÿhÊþÿ #' # # #ÿÿÿ *ѵÿ¤ÿ ÿ¥ÿ¦ÿ§ÿº ¢ÿº ¢ÿÁ©«ÿì®ÿË·¸ÿÖÅÆÿ×ÇÇÿéÚÙÿêÛÚÿéÛÚÿêÞÜÿêÞÜÿÿg]|ÿ i¥ÿ h£ÿ q°ÿ {¾ÿÉÿÒÿâÿ$©ôÿ4·ýÿ@¾þÿïþÿPÑþÿ?Ëþÿ-Áþÿ¹þÿ°þÿ ¦þÿ þÿ þÿ þÿ `âÿ #0 # # #ÿÿÿ #q\SØ
üÔÀÂÿÜÉÊÿÜÉÊÿÛÈÉÿÛÉÉÿÜÊÊÿÜÊÊÿ¸¤¨ÿÖÅÅÿÞÍÍÿÝÍÍÿÞÏÎÿèÚØÿèÚØÿéÜÚÿêÝÛÿ×ÉÈÿuvù1ÿ i©ÿ jªÿ r·ÿ }Äÿ Ìÿ Q¬ÿâÿ$«ôÿ2·ýÿFÀþÿìþÿ@Íþÿ1Åþÿºþÿ
°þÿ «þÿ ¢þÿ þÿ þÿ þÿ Zàÿ #< #* # #ÿÿÿ #Q;0dq\SæÓ¼¼ÿàÎÎÿßÍÍÿßÍÍÿßÍÍÿÞÍÌÿßÎÎÿ¶¤§ÿÕÄÄÿÞÎÍÿßÏÎÿçØ×ÿèÚØÿèÚØÿèÚØÿéÜÙÿ©ÿimÏ 0ÿ k¯ÿ m²ÿ t¾ÿ }Èÿ Ìÿ 4ÿ Q¯ÿ!©ôÿ4¸ýÿGÀþÿéþÿ4Åþÿ!¼þÿ´þÿ ¬þÿ £þÿ þÿ þÿ þÿ þÿ Wâÿ #C #1 # #ÿÿÿ V at 5È£ýÖÄÄÿàÏÎÿáÐÏÿáÑÐÿãÒÑÿãÒÑÿ´¢¥ÿÓÃÃÿåÖÔÿçÙ×ÿæØÕÿæØÖÿæØÖÿæÙÖÿÔÅÄÿtuú+$&V 2ÿ m·ÿ p»ÿ xÄÿ |Ëÿ Íÿ ;ÿ 5ÿ ZÄÿ8¸ýÿPÂþÿ
åþÿ%¿þÿ¶þÿ ¬þÿ ¤þÿ þÿ þÿ þÿ þÿ zþÿ Sâÿ #D #3 # #ÿÿÿ ÿÿÿ w_YêÔ¿¾ÿàÏÎÿàÑÏÿáÑÐÿàÑÏÿáÒÐÿµ£¥ÿÓÄÃÿäÕÓÿäÖÓÿäÖÓÿãÖÓÿãÖÓÿãÖÓÿ¦ÿloÒ"J 3ÿ p¿ÿ qÂÿ wÈÿ }Ëÿ Íÿ ;ÿ =ÿ =«ÿ eÐÿTÇþÿ{ßþÿ¸þÿ¬þÿ ¥þÿ þÿ þÿ þÿ þÿ {þÿ rþÿ Pàÿ #D #3 # #ÿÿÿ ÿÿÿ
T?5¿ ýåÖÔÿßÐÎÿßÐÎÿßÐÎÿßÐÎÿ²¡£ÿÑÂÁÿãÕÒÿãÕÒÿãÕÒÿáÔÐÿàÓÏÿÑÂÀÿrrù,%'V"E 5¤ÿ qÈÿ rÉÿ wËÿ zÌÿ ~ÍÿQÃÿ =ÿ L¸ÿ VËÿ lÖÿ xâÿ sâÿ oâÿ kâÿ fâÿ bâÿ [Öÿ Zâÿ Vâÿ Râÿ @Åÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ
s[UéÒ¿½ÿÝÎÌÿÜÍÊÿÝÎÌÿÛÍÊÿ± ¡ÿ;½ÿàÒÎÿáÔÐÿÜÎËÿÞÐÍÿßÒÎÿ¥ÿkmÖOB 3¥ÿ tÏÿ uÍÿ wËÿ zÌÿ ~Íÿ Óÿf¬Úÿ L¼ÿ YÔÿ aßÿ zñÿ rñÿ töÿ }ýÿ þÿ þÿ pëÿ'çù #K #I #G #> #. # #ÿÿÿ ÿÿÿ ÿÿÿ
R=4¦ýãÕÑÿÛÍÊÿÚËÉÿÚÌÉÿ®ÿ˼ºÿÞÑÍÿÜÍÊÿÜÎÊÿÛÍÉÿÊ»¹ÿpoû!kW1;Sa
4þcÒþ uÐÿ uÌÿ uÌÿ |Íÿ Óÿâÿr½óÿ [Öÿ bàÿ iëÿ põÿ vøÿ }þÿ þÿ þÿ oëÿlÙþ #I #C #; #0 #" # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
pZRåκ¸ÿÙËÈÿ×ÈÅÿÖÇÄÿ¬ÿȹ·ÿÙËÇÿÚËÇÿØÉÅÿØÉÅÿ¡ÿhiÝj]K-9S[6ý^Ìþ sÌÿ wÌÿ |Íÿ Óÿâÿ-«ôÿ~Ìýÿ bæÿ lïÿ röÿ xüÿ {þÿ þÿ þÿ þÿ þÿqÙüQÏÏ #- # # # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
M:1~ýÊ»¹ÿÔÅÂÿÔÅÂÿ©ÿŶ´ÿØÉÅÿÔÅÁÿÓÅÀÿÄ´±ÿnmüvi[
I?%/CV7ý
ZÇþ wÌÿ }ÍÿÓÿâÿ6±ôÿM¿ýÿ
Óþÿ môÿ r÷ÿ wþÿ ~þÿ þÿ þÿ þÿ þÿ þÿqÙü #* # # # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
jLDåɶ³ÿÒÿÿÐÁ¾ÿ¦ÿÁ²¯ÿÒÄ¿ÿѾÿÏÁ¼ÿÿefßmc
T C:<"1U9ýWÅÿ }Íÿ Óÿâÿ:³ôÿ[ÇýÿvÑþÿ¾ýþÿ¸øþÿ°õþÿ©òþÿ îþÿéþÿåþÿâþÿÝþÿxÙþÿhÊþÿ #! # # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ P71gb]þó±ÿ̼¸ÿ¢ÿ¼®«ÿÏÀ»ÿ̽¸ÿ¼¬¨ÿljývi\
J<56=!O<üVÃÿ Óÿãÿ@µôÿbÊýÿ
ÚþÿïþÿPÑþÿ?Ëþÿ-Áþÿ¹þÿ°þÿ ¦þÿ þÿ þÿ þÿ `âÿ #0 # # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
fHAÌ®«ÿȸ´ÿ ÿºª§ÿȸ³ÿȹ³ÿ~ÿceßmd
T C83 36="N@úYÌÿæÿH¹öÿlÌýÿÝþÿìþÿ@Íþÿ1Åþÿºþÿ
°þÿ «þÿ ¢þÿ þÿ þÿ þÿ Zàÿ #< #) # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ 8-':pQJþºª§ÿÿ´¤¡ÿô®ÿ´£ÿ{WSþwi\
J<4 2 1 125;#H£ù^ÞÿC¶ùÿlÍýÿßþÿéþÿ4Åþÿ!¼þÿ´þÿ ¬þÿ £þÿ þÿ þÿ þÿ þÿ Wâÿ #B #0 # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
_D=¤¸¤ ÿ
ÿ°ÿ¿®©ÿywÿ{XUømd
U C82 / + &!
%*R´öcçÿaÇþÿàþÿ
åþÿ%¿þÿ¶þÿ ¬þÿ ¤þÿ þÿ þÿ þÿ þÿ zþÿ Sâÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
lNFôÿ«ÿ«ÿyUQþ!{i]
J;/ ( #
".X·óbéÿÕþÿ{ßþÿ¸þÿ¬þÿ ¥þÿ þÿ þÿ þÿ þÿ {þÿ rþÿ Pàÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
W>7~vuÿ¥ÿwXUÿ{XUømcR
<+ # # # #1]¸ñaæÿpÙþÿ®þÿ ¦þÿ þÿ þÿ þÿ
þÿ }þÿ tþÿ lþÿ Màÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
hJCݤÿwTOþ#xeU>
' # # # # # # #<j¶ä tâÿ pâÿ lâÿ hâÿ dâÿ `àÿ Zâÿ Vâÿ Ràÿ Màÿ Hàÿ #D #3 # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
I4/W~]Xÿllð]T>% # # # # # # # # # # # #) #7 #@ #D #D #D #D #D #D #D #D #= #. # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ
lUOµ7-.PE;% ÿÿÿ # # # # # # # # # # # # # #$ #. #2 #3 #3 #3 #3 #3 #3 #3 #. #" # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ #"#$ +!&! # #ÿÿÿ ÿÿÿ # # # # # # # # # # # # # # # # # # # # # # # # # # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ #! # # # #ÿÿÿ ÿÿÿ ÿÿÿ # # # # # # # # # # # # # # # # # # # # # # # # # # #ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿÿ ÿÿ
-------------- next part --------------
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https:+AC8ALw-lists.linux-foundation.org+AC8-mailman+AC8-listinfo+AC8-containers
More information about the Devel
mailing list