Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8547a09f authored by The Android Open Source Project's avatar The Android Open Source Project
Browse files

android-2.1_r1 snapshot

parent 4b29fe64
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -53,13 +53,22 @@ static int add_tid_to_cgroup(int tid, const char *grp_name)
    sprintf(path, "/dev/cpuctl/%s/tasks", grp_name);

    if ((fd = open(path, O_WRONLY)) < 0) {
        LOGE("add_tid_to_cgroup failed to open '%s' (%s)\n", path, strerror(errno));
        LOGE("add_tid_to_cgroup failed to open '%s' (%s)\n", path,
             strerror(errno));
        return -1;
    }

    sprintf(text, "%d", tid);
    if (write(fd, text, strlen(text)) < 0) {
        close(fd);
	/*
	 * If the thread is in the process of exiting,
	 * don't flag an error
	 */
	if (errno == ESRCH)
		return 0;
        LOGW("add_tid_to_cgroup failed to write '%s' (%s)\n", path,
             strerror(errno));
        return -1;
    }

+2 −0
Original line number Diff line number Diff line
@@ -282,6 +282,8 @@
30035 am_schedule_service_restart (Component Name|3),(Time|2|3)
# A client was waiting for a content provider, but its process was lost
30036 am_provider_lost_process (Package Name|3),(UID|1|5),(Name|3)
# The activity manager gave up on a new process taking too long to start
30037 am_process_start_timeout (PID|1|5),(UID|1|5),(Process Name|3)

# Out of memory for surfaces.
31000 wm_no_surface_memory (Window|3),(PID|1|5),(Operation|3)
+0 −5
Original line number Diff line number Diff line
@@ -86,11 +86,6 @@ loglevel 3

    write /proc/apanic_console 1

    # Collect ramconsole data
    copy /proc/last_kmsg /data/dontpanic/last_kmsg
    chown root log /data/dontpanic/last_kmsg
    chmod 0640 /data/dontpanic/last_kmsg

    # Same reason as /data above
    mount yaffs2 mtd@cache /cache nosuid nodev
    chown system cache /cache