Advertisement
Guest User

Patch

a guest
Aug 30th, 2010
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. Index: firmware/target/arm/s5l8700/ata-nand-s5l8700.c
  2. ===================================================================
  3. --- firmware/target/arm/s5l8700/ata-nand-s5l8700.c (revision 27955)
  4. +++ firmware/target/arm/s5l8700/ata-nand-s5l8700.c (working copy)
  5. @@ -19,6 +19,7 @@
  6. *
  7. ****************************************************************************/
  8. #include "config.h"
  9. +#include "ata_idle_notify.h"
  10. #include "system.h"
  11. #include <string.h>
  12. #include "thread.h"
  13. Index: firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c
  14. ===================================================================
  15. --- firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c (revision 27955)
  16. +++ firmware/target/arm/s5l8700/ipodnano2g/nand-nano2g.c (working copy)
  17. @@ -31,7 +31,6 @@
  18. #include <mmu-arm.h>
  19. #include <string.h>
  20. #include "led.h"
  21. -#include "ata_idle_notify.h"
  22.  
  23.  
  24. #define NAND_CMD_READ 0x00
  25. @@ -91,7 +90,7 @@
  26. static int nand_interleaved = 0;
  27. static int nand_cached = 0;
  28. static long nand_last_activity_value = -1;
  29. -static long nand_stack[DEFAULT_STACK_SIZE];
  30. +static long nand_stack[32];
  31.  
  32. static struct mutex nand_mtx;
  33. static struct wakeup nand_wakeup;
  34. @@ -720,10 +719,7 @@
  35. {
  36. if (TIME_AFTER(current_tick, nand_last_activity_value + HZ / 5)
  37. && nand_powered)
  38. - {
  39. - call_storage_idle_notifys(false);
  40. nand_power_down();
  41. - }
  42. sleep(HZ / 10);
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement