Skip to contentSkip to conversation

cpufreq: serialize calls to __cpufreq_governor()

PATCH Prarit Bhargava 2 participants 2 messages Oct 10, 2014

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

In v2 my system still crashes when concurrently setting the governors I wasn't able to get a stack trace.

Robert

Send me your test script please.

P.

#1 lore raw

crash_governor.sh:
#!/bin/sh
#this is called concurrently via runme.sh
for I in seq 1000do
echo ondemand |sudo
tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
echo userspace |sudo
tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor done

runme.sh:
#!/bin/sh
#run 8 concurrent instances
for I in seq 8do
./crash_governor.sh &done

Just run runme.sh and crash your system :)

Am Freitag, den 10.10.2014, 09:40 -0400 schrieb Prarit Bhargava:

Quoted 10 lines

In v2 my system still crashes when concurrently setting the governors

Quoted 4 lines

I wasn't able to get a stack trace.

Robert

Send me your test script please.

P.