diff for duplicates of <200804101544.44457.arnd@arndb.de> diff --git a/a/1.txt b/N1/1.txt index 61176ef..4f46e6b 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,30 +1,33 @@ On Tuesday 08 April 2008, Jerone Young wrote: -> +static struct sleep_mode modes[] = { -> + { .name = "wait", .entry = &ppc44x_idle }, -> + { .name = "spin", .entry = NULL }, +> +static struct sleep_mode modes[] =3D { +> +=A0=A0=A0=A0=A0=A0=A0{ .name =3D "wait", .entry =3D &ppc44x_idle }, +> +=A0=A0=A0=A0=A0=A0=A0{ .name =3D "spin", .entry =3D NULL }, > +}; > + > +int __init ppc44x_idle_init(void) > +{ -> + void *func = modes[current_mode].entry; -> + ppc_md.power_save = func; -> + return 0; +> +=A0=A0=A0=A0=A0=A0=A0void *func =3D modes[current_mode].entry; +> +=A0=A0=A0=A0=A0=A0=A0ppc_md.power_save =3D func; +> +=A0=A0=A0=A0=A0=A0=A0return 0; > +} > + > +arch_initcall(ppc44x_idle_init); > + > +static int __init idle_param(char *p) -> +{ -> + int i; +> +{=20 +> +=A0=A0=A0=A0=A0=A0=A0int i; > + -> + for (i = 0; i < ARRAY_SIZE(modes); i++) { -> + if (!strcmp(modes[i].name, p)) { -> + current_mode = i; -> + break; -> + } -> + } +> +=A0=A0=A0=A0=A0=A0=A0for (i =3D 0; i < ARRAY_SIZE(modes); i++) { +> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0if (!strcmp(modes[i].name, = +p)) { +> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0cur= +rent_mode =3D i; +> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0bre= +ak; +> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0} +> +=A0=A0=A0=A0=A0=A0=A0} > + -> + return 0; +> +=A0=A0=A0=A0=A0=A0=A0return 0; > +} > + > +early_param("idle", idle_param); @@ -35,7 +38,7 @@ with the current code, but isn't this equivalent to the simpler static int __init idle_param(char *p) { if (!strcmp(modes[i].name, "spin")) - ppc_md.power_save = NULL; + ppc_md.power_save =3D NULL; } early_param("idle", idle_param); @@ -43,13 +46,3 @@ if you statically initialize the ppc_md.power_save function to ppc44x_idle in the platform setup files? Arnd <>< - -------------------------------------------------------------------------- -This SF.net email is sponsored by the 2008 JavaOne(SM) Conference -Don't miss this year's exciting event. There's still time to save $100. -Use priority code J8TL2D2. -http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone -_______________________________________________ -kvm-ppc-devel mailing list -kvm-ppc-devel@lists.sourceforge.net -https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel diff --git a/a/content_digest b/N1/content_digest index 3304248..0c98b5c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,38 +1,41 @@ "ref\0df0f79b7b4ab628887c2.1207673354@thinkpadL\0" "From\0Arnd Bergmann <arnd@arndb.de>\0" - "Subject\0Re: [kvm-ppc-devel] [PATCH] [v5] Add idle wait support for 44x\0" - "Date\0Thu, 10 Apr 2008 13:44:43 +0000\0" + "Subject\0Re: [PATCH] [v5] Add idle wait support for 44x platforms\0" + "Date\0Thu, 10 Apr 2008 15:44:43 +0200\0" "To\0linuxppc-dev@ozlabs.org\0" "Cc\0kvm-ppc-devel@lists.sourceforge.net\0" "\00:1\0" "b\0" "On Tuesday 08 April 2008, Jerone Young wrote:\n" - "> +static struct sleep_mode modes[] = {\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240{ .name = \"wait\", .entry = &ppc44x_idle },\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240{ .name = \"spin\", .entry = NULL },\n" + "> +static struct sleep_mode modes[] =3D {\n" + "> +=A0=A0=A0=A0=A0=A0=A0{ .name =3D \"wait\", .entry =3D &ppc44x_idle },\n" + "> +=A0=A0=A0=A0=A0=A0=A0{ .name =3D \"spin\", .entry =3D NULL },\n" "> +};\n" "> +\n" "> +int __init ppc44x_idle_init(void)\n" "> +{\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240void *func = modes[current_mode].entry;\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240ppc_md.power_save = func;\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240return 0;\n" + "> +=A0=A0=A0=A0=A0=A0=A0void *func =3D modes[current_mode].entry;\n" + "> +=A0=A0=A0=A0=A0=A0=A0ppc_md.power_save =3D func;\n" + "> +=A0=A0=A0=A0=A0=A0=A0return 0;\n" "> +}\n" "> +\n" "> +arch_initcall(ppc44x_idle_init);\n" "> +\n" "> +static int __init idle_param(char *p)\n" - "> +{ \n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240int i;\n" + "> +{=20\n" + "> +=A0=A0=A0=A0=A0=A0=A0int i;\n" "> +\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240for (i = 0; i < ARRAY_SIZE(modes); i++) {\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240if (!strcmp(modes[i].name, p)) {\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240current_mode = i;\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240break;\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240}\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240}\n" + "> +=A0=A0=A0=A0=A0=A0=A0for (i =3D 0; i < ARRAY_SIZE(modes); i++) {\n" + "> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0if (!strcmp(modes[i].name, =\n" + "p)) {\n" + "> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0cur=\n" + "rent_mode =3D i;\n" + "> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0bre=\n" + "ak;\n" + "> +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0}\n" + "> +=A0=A0=A0=A0=A0=A0=A0}\n" "> +\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240return 0;\n" + "> +=A0=A0=A0=A0=A0=A0=A0return 0;\n" "> +}\n" "> +\n" "> +early_param(\"idle\", idle_param);\n" @@ -43,23 +46,13 @@ "static int __init idle_param(char *p)\n" "{\n" "\tif (!strcmp(modes[i].name, \"spin\"))\n" - "\t\tppc_md.power_save = NULL;\n" + "\t\tppc_md.power_save =3D NULL;\n" "}\n" "early_param(\"idle\", idle_param);\n" "\n" "if you statically initialize the ppc_md.power_save function to ppc44x_idle\n" "in the platform setup files?\n" "\n" - "\tArnd <><\n" - "\n" - "-------------------------------------------------------------------------\n" - "This SF.net email is sponsored by the 2008 JavaOne(SM) Conference \n" - "Don't miss this year's exciting event. There's still time to save $100. \n" - "Use priority code J8TL2D2. \n" - "http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone\n" - "_______________________________________________\n" - "kvm-ppc-devel mailing list\n" - "kvm-ppc-devel@lists.sourceforge.net\n" - https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel + "\tArnd <><" -1e55017c4e2236cef75e8eecab5bd09b5bc5c31086e725980775253b78e38f67 +62cd441dbba3834ce1216dba43d6638871a859ef17f35191eac279b210fa0930
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.