FW: Fix to missing sysctls on Zaurus

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FW: Fix to missing sysctls on Zaurus

asmith-4
*cough*, sorry, here it is embedded

--- cpu.h.orig Tue May 29 22:09:43 2007
+++ cpu.h Mon Aug 13 13:19:02 2007
@@ -62,9 +62,9 @@
 #define CPU_ALLOWAPERTURE 6 /* int: allow mmap of /dev/xf86 */
 #define CPU_APMWARN 7 /* APM battery warning percentage */
 #define CPU_KBDRESET 8 /* int: console keyboard reset */
-#define CPU_MAXSPEED 11 /* int: number of valid machdep ids */
-#define CPU_LIDSUSPEND 12 /* int: closing lid causes suspend */
-#define CPU_MAXID 13 /* number of valid machdep ids */
+#define CPU_MAXSPEED 9 /* int: number of valid machdep ids */
+#define CPU_LIDSUSPEND 10 /* int: closing lid causes suspend */
+#define CPU_MAXID 11 /* number of valid machdep ids */
 
 #define CTL_MACHDEP_NAMES { \
  { 0, 0 }, \

-Andy


> Message Received: Aug 13 2007, 03:15 PM
> From: [hidden email]
> To: [hidden email]
> Cc:
> Subject: Fix to missing sysctls on Zaurus
>
> The last change to sys/arch/arm/include/cpu.h (1.17) made by robert@ broke the machdep.maxspeed and machdep.lidsuspend sysctls.
>
> Basically robert@ removed two sysctls (ztsscale and ztsrawmode) without renumbering the #defines in the CTL_MACHDEP section. Since sysctl uses the index of the text string to find the mib the defines must match the index position of the strings.
>
> The following patch corrects the defines and has been tested with 4.2 -current.
>
> Regards,
>
> -Andy
>
> [demime 1.01d removed an attachment of type application/octet-stream which had a name of sys_arch_arm_include_cpu_h_fix-machdeps.patch]