lkml.org 
[lkml]   [2010]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 4/8] PM: suspend_block: Add debugfs file
From
Date
Arve Hjønnevåg <arve@android.com> writes:
>
> +static int suspend_blocker_stats_show(struct seq_file *m, void *unused)
> +{
> + unsigned long irqflags;
> + struct suspend_blocker *blocker;
> +
> + seq_puts(m, "name\tactive\n");
> + spin_lock_irqsave(&list_lock, irqflags);
> + list_for_each_entry(blocker, &inactive_blockers, link)
> + seq_printf(m, "\"%s\"\t0\n", blocker->name);
> + list_for_each_entry(blocker, &active_blockers, link)
> + seq_printf(m, "\"%s\"\t1\n", blocker->name);
> + spin_unlock_irqrestore(&list_lock, irqflags);

Could you report the pid here too?

The name set by the application might be meaningless or duplicated.

-Andi

--
ak@linux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-05-04 13:19    [from the cache]
©2003-2011 Jasper Spaans