[Nexus 4 Android Development] spezi77:
I'd like to share with you the current status quo about the investigation on the freezing issue / kernel panic which occurs in Resurrection Remix M when changing CPU governors.

The good news are that I was able to record a last kmesg:

[ 1038.338562] Unable to handle kernel NULL pointer dereference at virtual address 00000024
[ 1038.338653] pgd = c0004000
[ 1038.338714] [00000024] *pgd=00000000
[ 1038.338867] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 1038.338928] Modules linked in:
[ 1038.339050] CPU: 0 Tainted: G W (3.4.112-N4-revival-marshmallow-r06-CM-UBERTC-5.4 #1)
[ 1038.339142] PC is at thread_migration_notify+0x4c/0xbc
[ 1038.339264] LR is at 0xc3768590
[ 1038.339325] pc : <c04e689c> lr : <c3768590> psr: 20000093
[ 1038.339325] sp : e533be68 ip : c0e38470 fp : edf8f480
[ 1038.339477] r10: 00000000 r9 : edf8f7f0 r8 : 00000000
[ 1038.339539] r7 : ffffffff r6 : 00000001 r5 : 00000000 r4 : 00000000
[ 1038.339630] r3 : c3771590 r2 : 00171240 r1 : 00000001 r0 : 00000000
[ 1038.339691] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 1038.339783] Control: 10c5787d Table: ad83c06a DAC: 00000015
...
[ 1038.373111] [<c04e689c>] (thread_migration_notify) from [<c009ecc4>] (notifier_call_chain+0x74/0xa8)
[ 1038.373202] [<c009ecc4>] (notifier_call_chain) from [<c009ef88>] (atomic_notifier_call_chain+0x3c/0x5c)
[ 1038.373325] [<c009ef88>] (atomic_notifier_call_chain) from [<c00a53cc>] (__migrate_task+0x1cc/0x20c)
[ 1038.373416] [<c00a53cc>] (__migrate_task) from [<c00a5430>] (migration_cpu_stop+0x24/0x38)
[ 1038.373508] [<c00a5430>] (migration_cpu_stop) from [<c00d50f8>] (cpu_stopper_thread+0xcc/0x184)
[ 1038.373599] [<c00d50f8>] (cpu_stopper_thread) from [<c00a1ad8>] (smpboot_thread_fn+0x13c/0x254)
[ 1038.373721] [<c00a1ad8>] (smpboot_thread_fn) from [<c00987e4>] (kthread+0xbc/0xc0)
[ 1038.373843] [<c00987e4>] (kthread) from [<c000fa54>] (kernel_thread_exit+0x0/0x8)
[ 1038.373904] Code: e79c0101 e5922024 e0833000 e5930068 (e5900024)
[ 1038.373996] ---[ end trace 29938baf8d874dcd ]---
[ 1038.374057] Kernel panic - not syncing: Fatal exception
[ 1038.374179] CPU1: stopping
[ 1038.374271] [<c0016670>] (unwind_backtrace) from [<c0014c00>] (handle_IPI+0x1c0/0x1d8)
[ 1038.374393] [<c0014c00>] (handle_IPI) from [<c000862c>] (gic_handle_irq+0xb8/0x10c)
[ 1038.374484] [<c000862c>] (gic_handle_irq) from [<c000e480>] (__irq_svc+0x40/0x74)
[ 1038.374606] Exception stack(0xe533df68 to 0xe533dfb0)
[ 1038.374698] df60: 00000000 00000003 00179b09 00000000 c3772700 00000000
[ 1038.374820] df80: 00000000 c0e4a644 c0fd85e8 c0907224 00000000 00000000 00000000 e533dfb0
[ 1038.374973] dfa0: c0055218 c005b360 60000013 ffffffff
[ 1038.375064] [<c000e480>] (__irq_svc) from [<c005b360>] (msm_cpuidle_enter+0x68/0x78)
[ 1038.375186] [<c005b360>] (msm_cpuidle_enter) from [<c04ec6f0>] (cpuidle_idle_call+0xb8/0x140)
[ 1038.375339] [<c04ec6f0>] (cpuidle_idle_call) from [<c000fe38>] (cpu_idle+0x8c/0x110)
[ 1038.375430] [<c000fe38>] (cpu_idle) from [<80a87ef4>] (0x80a87ef4)
[ 1038.379184] msm_pm_wait_cpu_shutdown(): Timed out waiting for CPU 1 SPM to enter sleep state
[ 1039.411841] wcnss_8960: crash shutdown : 0
[ 1047.673615] Rebooting in 5 seconds..

The bad news are so far that I was able to reproduce the freezing in every kernel build I ever made (revival r01-r06 and hellspawn r07-r16). I think that there is also a chance that this issue happens with hells-Core or semaphore kernels, not sure about Quanta Mako (maybe this is the right choice for you to stay with). Maybe someone would be interested in conducting further tests with different kernels. My little spare time has been consumed for this weekend.