Skip to content
Browse files

add safe mode

  • Loading branch information...
1 parent 6f730e6 commit 4052537d821fb2e2d818c80380bffacbd808a65b @sakuramilk committed Apr 15, 2012
Showing with 9 additions and 0 deletions.
  1. +1 −0 include/linux/kernel.h
  2. +1 −0 init/main.c
  3. +7 −0 kernel/sysctl.c
View
1 include/linux/kernel.h
@@ -755,5 +755,6 @@ extern char *mach_panic_string;
extern unsigned int kproc_build_target;
extern unsigned int kproc_feature_aosp;
#define FEATURE_AOSP_ENABLE (kproc_feature_aosp)
+extern unsigned int kproc_safe_mode;
#endif /* _LINUX_KERNEL_H */
View
1 init/main.c
@@ -144,6 +144,7 @@ unsigned int kproc_feature_aosp = 1;
#else
unsigned int kproc_feature_aosp = 0;
#endif
+unsigned int kproc_safe_mode = 0;
/*
* If set, this is an indication to the drivers that reset the underlying
View
7 kernel/sysctl.c
@@ -999,6 +999,13 @@ static struct ctl_table kern_table[] = {
.mode = 0644,
.proc_handler = proc_dointvec,
},
+ {
+ .procname = "safe_mode",
+ .data = &kproc_safe_mode,
+ .maxlen = sizeof(unsigned int),
+ .mode = 0644,
+ .proc_handler = proc_dointvec,
+ },
{ }
};

0 comments on commit 4052537

Please sign in to comment.
Something went wrong with that request. Please try again.