Skip to content

Tags: kerneltoast/android_kernel_google_wahoo

Tags

20200814

Toggle 20200814's commit message
kernel: Warn when an IRQ's affinity notifier gets overwritten

An IRQ affinity notifier getting overwritten can point to some annoying
issues which need to be resolved, like multiple pm_qos objects being
registered to the same IRQ. Print out a warning when this happens to aid
debugging.

Signed-off-by: Sultan Alsawaf <[email protected]>

20200711

Toggle 20200711's commit message
wahoo_defconfig: Don't sync when entering suspend

Syncing can take a long time in some cases, and the risk of us losing
power or crashing while in suspend on a battery-backed device is very
low. Android also enters and exits suspend very frequently, which
exacerbates the cost.

Signed-off-by: Danny Lin <[email protected]>

20200602

Toggle 20200602's commit message
cpuidle: Mark CPUs idle as late as possible to avoid unneeded IPIs

It isn't guaranteed a CPU will idle upon calling lpm_cpuidle_enter(),
since it could abort early at the need_resched() check. In this case,
it's possible for an IPI to be sent to this "idle" CPU needlessly, thus
wasting power. For the same reason, it's also wasteful to keep a CPU
marked idle even after it's woken up.

Reduce the window that CPUs are marked idle to as small as it can be in
order to improve power consumption.

Signed-off-by: Sultan Alsawaf <[email protected]>

20200522

Toggle 20200522's commit message
mbcache: Speed up cache entry creation

In order to prevent redundant entry creation by racing against itself,
mb_cache_entry_create scans through a large hash-list of all current
entries in order to see if another allocation for the requested new
entry has been made. Furthermore, it allocates memory for a new entry
before scanning through this hash-list, which results in that allocated
memory being discarded when the requested new entry is already present.
This happens more than half the time.

Speed up cache entry creation by keeping a small linked list of
requested new entries in progress, and scanning through that first
instead of the large hash-list. Additionally, don't bother allocating
memory for a new entry until it's known that the allocated memory will
be used.

Signed-off-by: Sultan Alsawaf <[email protected]>