Thread (2 messages) flat view 2 messages, 2 authors, 2001-08-12

pmu_suspend/resume

From: Ira Weiny <hidden>
Date: 2001-08-12 03:57:07

I have been using pmu_suspend and pmu_resume to keep my TiBook from
turning off when debugging some kernel stuff.  Is this ok?

The reason I ask is that pmu_suspend seems to have the desired effect,
temporarily turning off the PMU.  But pmu_resume does not seem to leave
the PMU in a stable state.  Now I realize that I am debuging a kernel
and that it could/probably is other factors which are causing these
problems but I just wanted to make sure that there is not some better
way of disabiling the PMU or that I might be using these functions
incorrectly.

Basically:

pmu_suspend();

/* suspicious/known bad code here */

pmu_resume();

Just like that right?

Thanks,
Ira Weiny
iweiny@acm.org

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help