diff options
author | Elliott Hughes <enh@google.com> | 2015-03-19 23:21:28 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-19 23:21:29 +0000 |
commit | bbc01d825448a738160716f95d9cc38f2be5f4f1 (patch) | |
tree | 267d9d8c8d6bcc3aa1fd347848e32b64b7d72adc /init/init.cpp | |
parent | 8386a726d11785dee69a806a0d37147f7bad1e76 (diff) | |
parent | 74b34f3cb79aa8f2c5ba6a9dcc46d0dd84cdac86 (diff) | |
download | system_core-bbc01d825448a738160716f95d9cc38f2be5f4f1.zip system_core-bbc01d825448a738160716f95d9cc38f2be5f4f1.tar.gz system_core-bbc01d825448a738160716f95d9cc38f2be5f4f1.tar.bz2 |
Merge "Remove /proc/cpuinfo parsing"
Diffstat (limited to 'init/init.cpp')
-rw-r--r-- | init/init.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/init/init.cpp b/init/init.cpp index e1c82a4..3418d65 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -66,8 +66,6 @@ static int property_triggers_enabled = 0; static char console[32]; static char bootmode[32]; -static char hardware[32]; -static unsigned revision = 0; static char qemu[32]; static struct action *cur_action = NULL; @@ -773,6 +771,8 @@ static void export_kernel_boot_props(void) { "ro.boot.mode", "ro.bootmode", "unknown", }, { "ro.boot.baseband", "ro.baseband", "unknown", }, { "ro.boot.bootloader", "ro.bootloader", "unknown", }, + { "ro.boot.hardware", "ro.hardware", "unknown", }, + { "ro.boot.revision", "ro.revision", "0", }, }; for (i = 0; i < ARRAY_SIZE(prop_map); i++) { @@ -791,16 +791,6 @@ static void export_kernel_boot_props(void) property_get("ro.bootmode", tmp); strlcpy(bootmode, tmp, sizeof(bootmode)); - /* if this was given on kernel command line, override what we read - * before (e.g. from /proc/cpuinfo), if anything */ - ret = property_get("ro.boot.hardware", tmp); - if (ret) - strlcpy(hardware, tmp, sizeof(hardware)); - property_set("ro.hardware", hardware); - - snprintf(tmp, PROP_VALUE_MAX, "%d", revision); - property_set("ro.revision", tmp); - /* TODO: these are obsolete. We should delete them */ if (!strcmp(bootmode,"factory")) property_set("ro.factorytest", "1"); @@ -1014,8 +1004,6 @@ int main(int argc, char** argv) { klog_init(); property_init(); - get_hardware_name(hardware, &revision); - process_kernel_cmdline(); selinux_callback cb; |