idr: make idr_get_next() good for rcu_read_lock() + FLAGS and Setting Tune.

Make one small adjustment to idr_get_next(): take the height from the
top layer (stable under RCU) instead of from the root (unprotected by
RCU), as idr_find() does: so that it can be used with RCU locking.
Copied comment on RCU locking from idr_find().

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>

commit 8723a7a0c819758a0ab79938acf6b970f889c5a5 1 parent ad5e7403d1
Hugh Dickins authored 5 months ago Paul Reioux committed 5 months ago
memcg: let css_get_next() rely upon rcu_read_lock()

Remove lock and unlock around css_get_next()'s call to idr_get_next().
memcg iterators (only users of css_get_next) already did rcu_read_lock(),
and its comment demands that; but add a WARN_ON_ONCE to make sure of it.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>

commit 4536a1b91dd6408d3453fcb5291457f91dd0d1a2 1 parent 8723a7a0c8
Hugh Dickins authored 5 months ago Paul Reioux committed 5 months ago
Small ZCAHE changes, + settings change.
Kernel 3.5! Settings tune, and code cleaning from unused functions.
lib/sha1.c: quiet sparse noise about symbol not declared

Include <linux/cryptohash.h> to pickup the declarations for sha_transform
and sha_init to quite the sparse noise:

  warning: symbol 'sha_transform' was not declared. Should it be static?
  warning: symbol 'sha_init' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Mandeep Singh Baines <msb@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

commit ef7f25fa7279865309d577bd736486a024f5269f 1 parent 1e1e4ef518
H Hartley Sweeten authored 9 months ago myfluxi committed 4 days ago
keyboard: cypress: Ensure light is off, enable regulator only if needed
commit f08e48fb82a2501eec5e324efde471b24312efcf 1 parent 10f3f5a46e
myfluxi authored 11 hours ago
mmc: Fix file permissions from N7000 commit
Revert "+ net: wireless: bcmdhd: Set MMC_PM_KEEP_POWER flag on suspend -> https://bitbucket.org/sarcastillo/redpillkernel/changeset/958794e2df69"

This reverts commit c1e80ab1273bfa8541d98e3985c85e11ea17c55b.
One more setting config...
max8997_vibrator: user configurable vibrator intensity

Based on Daniel Hillenbrand's GT-I9300 implementation

Change-Id: Ibde3ee5939a783ef4998d89d88658822f20de55c
Signed-off-by: Andrew Dodd <atd7@cornell.edu>

commit 12ef675dd6372fcb553184e8c41c57b23112ec85 1 parent 9cc3cd9d3d
Entropy512 authored a day ago
net: wireless: bcmdhd: Fake PNO event to wake up the wpa_supplicant

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit b1a9420)

commit 483384f421702198961405d2d1ef69abf882e83c 1 parent a202c50f12
Dmitry Shmidt authored 5 months ago the-devil committed 4 months ago

+Fix wifi_pm typo
Fix smartass workqueue. create_rt_workqueue is a deprecated method.
Changed it to create_singlethread_workqueue.
+Updated to real smartass2 name!

commit bb99c799251958e6759435bdf7831a56a0b61c59 1 parent 59b1475e4e
stevegaron authored 5 months ago the-devil committed 5 months ago
CPUFREQ: Added new GOV HYPER + New Modded Ondemand
Hyper = performance
Ondemand = battery saver.
wireless: bcmdhd: remove __wl_band_5ghz_a.n/2ghz.n_channel in bandlis.

.t conditional

-suspected to cause dissappearing AP list, resulting in a disconnect, for some.

Change-Id: Id19838f25a3678cb6be149c3f6c8375bed70cea6

commit 0c3939cc8d239f3a3260e2839b22f16e3eae86cb 1 parent c550a6e23f
pershoot authored 2 days ago
net: wireless: bcmdhd: Reload FW in case of constant scan failure

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

commit fb8ec3ff66bca9f3574a597afeb2fad7e1f64794 1 parent 0c3939cc8d
Dmitry Shmidt authored 6 days ago pershoot committed 14 hours ago
net: wireless: bcmdhd: Reduce priority for dhd_dpc and watchdog

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

commit 347377a344a94d30a1a98acc77cc67f0c0818c28 1 parent fb8ec3ff66
Dmitry Shmidt authored 6 days ago pershoot committed 14 hours ago
ALSA: usb-audio: fixed usb audio subsystem initialization

If USB audio device is already present on bus during
snd_usb_audio_init initialization will fail and kernel
will reboot due to null-pointer dereference.

The snd_usb_audio_init consists of 2 steps:
1) usb_register() - registers USB audio driver
2) switch_dev_register() - initializes the switch_dev sdev structure

If there is no USB audio device present on the bus, the
snd_usb_audio_init will finish with initialized sdev structure.
After that if USB audio device is plugged, the usb_audio_probe
callback will initialize device (during this step we are accessing sdev)

But if USB audio device is already present on bus during
snd_usb_audio_init initialization, usb_audio_probe callback will
be called during usb_register() - when sdev isn't initialized yet.
We are getting reboot due to null-pointer dereference.

Changed order of described steps so sdev is initialized when
calling usb_register.

Change-Id: Id22356157af2b69038506f1138a6da78d8f1e727
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>

Conflicts:

	sound/usb/card.c

commit 29222fcc5d5c35fc6b161f9eedde887ea7bdd0bd 1 parent a3613d237c
Ruslan Bilovol authored 15 days ago drod2169 committed 3 days ago
cpufreq: interactive governor: Add a time view concept

CPUFreq governors are always a tradeoff between power vs performance.
For low power UCs we want to have a less reponsive cpufreq governor that
does not respond or react to each load pick.
However when scrolling on the screen or during webbrowsing we need a more
responsive governor that interact or esponse to each load variation.

To detect which kind of application we have, we'll rely on the history of
the load. if the the average over the load history is high that means we
need to be more responsive so we change the governor paramters in that
direction.
if the average over the load history is low thatmeans we are in low power
UCs so we change the governor parameter to be less responsive

Change-Id: Ifd55ac4cfbc1bd9eded4ae603b158054c6169e8c
Signed-off-by: Nicole Chalhoub <n-chalhoub@ti.com>
Signed-off-by: Taras Kondratiuk <taras@ti.com>

commit 270d50d26b717a606ba959c7c4fe654e11bd990f 1 parent 6159f9c2b8
Nicole Chalhoub authored 2 months ago myfluxi committed 11 hours ago
Kernel 3.7 + Ofast and touch screen tune.

Conflicts:

	arch/arm/configs/dorimanx_defconfig
Retuned the touchscreen again, next time i will make extweaks options.