Stopping devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have annoyed kernel maintainers with my patches,
because I didn't know that such group exists. So
before I start annoying them again I ask here.

For longhaul cpufreq driver it is necessary to stop
PCI bus and processor for >=1ms to let processor
sync internal PLL.

This is start:
+	freeze_processes();
+	device_suspend(PMSG_FREEZE);
+	clear_bus_master();
+	local_irq_save(flags);
This is end:
+	local_irq_restore(flags);
+	restore_bus_master();
+	device_resume();
+	thaw_processes();


freeze_processes() will let me do anything in this time?
No more "scheduling while atomic" messages?
PMSG_FREEZE is not implemented yet for most devices, but
"will fix later". If I'm using this do I have to still
poke PIC registers or all device interrupts will be 
disabled? Will tick (INT0) interrupt be left enabled 
(i'm depending on this - this int wakeup processor)?
Can I use PM for this? It works - but is this proper?

Rafal


----------------------------------------------------------------------
INTERIA.PL dla kobiet... >>> http://link.interia.pl/f193b


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux