Advertisement
t0mm13b

hecatae patch2

Jul 16th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. t0mm13b@riviera:~/AOSP/Kernels/L5_kernel $ cat hecatae.diff
  2. diff --git a/drivers/gpu/msm/adreno.c b/drivers/gpu/msm/adreno.c
  3. index 04d41e2..db5c1b9 100755
  4. --- a/drivers/gpu/msm/adreno.c
  5. +++ b/drivers/gpu/msm/adreno.c
  6. @@ -30,6 +30,7 @@
  7.  
  8. #include "a2xx_reg.h"
  9. #include "kgsl_mmu.h"
  10. +#include "kgsl_log.h"
  11.  
  12. #define DRIVER_VERSION_MAJOR 3
  13. #define DRIVER_VERSION_MINOR 1
  14. @@ -279,7 +280,7 @@ static void adreno_setstate(struct kgsl_device *device,
  15. * writes For CFF dump we must idle and use the registers so that it is
  16. * easier to filter out the mmu accesses from the dump
  17. */
  18. - if (!kgsl_cff_dump_enable && adreno_dev->drawctxt_active) {
  19. + if (/*!kgsl_cff_dump_enable && */ adreno_dev->drawctxt_active) {
  20. if (flags & KGSL_MMUFLAGS_PTUPDATE) {
  21. /* wait for graphics pipe to be idle */
  22. *cmds++ = cp_type3_packet(CP_WAIT_FOR_IDLE, 1);
  23. diff --git a/drivers/power/msm_battery.c b/drivers/power/msm_battery.c
  24. index 4db586d..82d5de1 100644
  25. --- a/drivers/power/msm_battery.c
  26. +++ b/drivers/power/msm_battery.c
  27. @@ -1672,7 +1672,8 @@ static unsigned pif_value;
  28. static ssize_t msm_batt_pif_show(struct device* dev, struct device_attribute* attr, char* buf)
  29. {
  30. //LGE_CHANGE_S, [[email protected]] , 2011-10-20
  31. - pif_value = lge_get_pif_info();
  32. + //pif_value = lge_get_pif_info();
  33. + pif_value = 0xbadcafe;
  34. //LGE_CHANGE_E, [[email protected]] , 2011-10-20
  35. return sprintf(buf,"%d\n", pif_value);
  36. }
  37. @@ -1913,7 +1914,8 @@ static int __devinit msm_batt_probe(struct platform_device *pdev)
  38. dev_err(&pdev->dev,
  39. "%s: msm_batt_cleanup failed rc=%d\n", __func__, rc);
  40. } else {
  41. - pif_value = lge_get_pif_info();
  42. + //pif_value = lge_get_pif_info();
  43. + pif_value = 0xbadcafe;
  44. }
  45.  
  46. dev_info(&pdev->dev, "%s : Using PIF ZIG (%d)\n", __func__, pif_value);
  47. diff --git a/include/linux/input.h b/include/linux/input.h
  48. index 9879bdd..42cbe4b 100644
  49. --- a/include/linux/input.h
  50. +++ b/include/linux/input.h
  51. @@ -1476,9 +1476,9 @@ void input_inject_event(struct input_handle *handle, unsigned int type, unsigned
  52. extern int LGF_TestModeGetDisableInputDevices(void);
  53. static inline void input_report_key(struct input_dev *dev, unsigned int code, int value)
  54. {
  55. - if(LGF_TestModeGetDisableInputDevices())
  56. + /*if(LGF_TestModeGetDisableInputDevices())
  57. ;
  58. - else
  59. + else*/
  60. input_event(dev, EV_KEY, code, value);
  61. }
  62.  
  63. @@ -1489,9 +1489,9 @@ static inline void input_report_rel(struct input_dev *dev, unsigned int code, in
  64.  
  65. static inline void input_report_abs(struct input_dev *dev, unsigned int code, int value)
  66. {
  67. - if(LGF_TestModeGetDisableInputDevices())
  68. + /*if(LGF_TestModeGetDisableInputDevices())
  69. ;
  70. - else
  71. + else*/
  72. input_event(dev, EV_ABS, code, value);
  73. }
  74.  
  75. @@ -1507,17 +1507,17 @@ static inline void input_report_switch(struct input_dev *dev, unsigned int code,
  76.  
  77. static inline void input_sync(struct input_dev *dev)
  78. {
  79. - if(LGF_TestModeGetDisableInputDevices())
  80. + /*if(LGF_TestModeGetDisableInputDevices())
  81. ;
  82. - else
  83. + else*/
  84. input_event(dev, EV_SYN, SYN_REPORT, 0);
  85. }
  86.  
  87. static inline void input_mt_sync(struct input_dev *dev)
  88. {
  89. - if(LGF_TestModeGetDisableInputDevices())
  90. + /*if(LGF_TestModeGetDisableInputDevices())
  91. ;
  92. - else
  93. + else*/
  94. input_event(dev, EV_SYN, SYN_MT_REPORT, 0);
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement