[ 9.879582] BUG: scheduling while atomic: kworker/u16:0/596/0x00010003 [ 9.879638] 2 locks held by kworker/u16:0/596: [ 9.879642] #0: ffff0001da7f77d8 (&rq->__lock){-.-.}-{2:2}, at: scheduler_tick+0x70/0x150 [ 9.879667] #1: ffff00002746ee38 (&sg_policy->update_lock){-.-.}-{2:2}, at: sugov_update_shared+0x48/0x384 [ 9.879684] Modules linked in: [ 9.879688] irq event stamp: 226 [ 9.879691] hardirqs last enabled at (225): [] _raw_spin_unlock_irqrestore+0x64/0x88 [ 9.879700] hardirqs last disabled at (226): [] el1_interrupt+0x28/0xac [ 9.879707] softirqs last enabled at (84): [] __do_softirq+0x4b0/0x56c [ 9.879713] softirqs last disabled at (75): [] __irq_exit_rcu+0x100/0x15c [ 9.879721] CPU: 0 PID: 596 Comm: kworker/u16:0 Not tainted 5.17.0-rc4-asahi-next-20220217m1+ #296 [ 9.879727] Hardware name: Apple Mac mini (M1, 2020) (DT) [ 9.879729] Call trace: [ 9.879731] dump_backtrace+0xdc/0xf8 [ 9.879738] show_stack+0x20/0x38 [ 9.879745] dump_stack_lvl+0x88/0xb4 [ 9.879753] dump_stack+0x18/0x48 [ 9.879759] __schedule_bug+0x84/0xa0 [ 9.879766] __schedule+0x7b8/0x924 [ 9.879772] schedule+0x78/0xbc [ 9.879778] schedule_hrtimeout_range_clock+0x148/0x18c [ 9.879783] schedule_hrtimeout_range+0x1c/0x28 [ 9.879787] usleep_range_state+0x58/0x70 [ 9.879792] apple_soc_cpufreq_set_target+0x78/0x100 [ 9.879798] apple_soc_cpufreq_fast_switch+0x24/0x54 [ 9.879803] cpufreq_driver_fast_switch+0x44/0xd0 [ 9.879810] sugov_update_shared+0x32c/0x384 [ 9.879815] update_load_avg+0x420/0x514 [ 9.879819] task_tick_fair+0x90/0x3b0 [ 9.879824] scheduler_tick+0xc8/0x150 [ 9.879828] update_process_times+0xb8/0xd0 [ 9.879836] tick_sched_timer+0xd0/0x14c [ 9.879841] __hrtimer_run_queues+0x228/0x42c [ 9.879846] hrtimer_interrupt+0xf8/0x37c [ 9.879852] arch_timer_handler_virt+0x40/0x50 [ 9.879858] handle_percpu_devid_irq+0x94/0x180 [ 9.879863] generic_handle_domain_irq+0x44/0x68 [ 9.879869] aic_handle_fiq+0xa0/0x1c4 [ 9.879873] call_on_irq_stack+0x2c/0x54 [ 9.879878] el1_interrupt+0x78/0xac [ 9.879883] el1h_64_fiq_handler+0x18/0x24 [ 9.879888] el1h_64_fiq+0x64/0x68 [ 9.879891] _raw_spin_unlock_irqrestore+0x7c/0x88 [ 9.879896] sched_move_task+0x158/0x188 [ 9.879902] sched_autogroup_exit_task+0x18/0x24 [ 9.879906] do_exit+0x27c/0x80c [ 9.879911] __traceiter_workqueue_queue_work+0x0/0x6c [ 9.879918] ret_from_fork+0x10/0x20 [ 9.879924]