[ANDROID KERNEL PATCH 5/7] Update Kernel core files

Michael Trimarchi trimarchi at gandalf.sssup.it
Thu Jan 29 13:47:21 CET 2009


Hi,

Andy Green wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Somebody in the thread at some point said:
> | Update kernel core files to support android suspend/resume. These
> | change are conditioned by ifdef
>
> Hi -
>
> Here's a bug that breaks build without
> CONFIG_ANDROID_CONSOLE_EARLYSUSPEND.. should it be #ifdef not #ifndef?
>
> | --- a/kernel/printk.c
> | +++ b/kernel/printk.c
> | @@ -82,7 +82,9 @@ 
> EXPORT_SYMBOL(printk_emergency_debug_spew_send_string);
> |   * driver system.
> |   */
> |  static DECLARE_MUTEX(console_sem);
> | +#ifdef CONFIG_ANDROID_CONSOLE_EARLYSUSPEND
> |  static DECLARE_MUTEX(secondary_console_sem);
> | +#endif
>
This is a ifndef.
> | +#ifndef CONFIG_ANDROID_CONSOLE_EARLYSUSPEND
> |      if (console_suspended) {
> |          down(&secondary_console_sem);
> |          return;
> |      }
> | +#endif
>
> - -Andy
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkmBpLEACgkQOjLpvpq7dMqdjwCfbubhUyZzIvaxG9Ro6utWQPRN
> bpcAn1ZRYMggm0gAdrEbQsZnrU7sAth4
> =B3o0
> -----END PGP SIGNATURE-----
>
Michael



More information about the openmoko-kernel mailing list