/*
 *  (C) 2010,2011       Thomas Renninger <trenn@suse.de>, Novell Inc.
 *
 *  Licensed under the terms of the GNU GPL License version 2.
 *
 * ToDo: Needs to be done more properly for AMD/Intel specifics
 */

/* Helper struct for qsort, must be in sync with cpupower_topology.cpu_info */
/* Be careful: Need to pass unsigned to the sort, so that offlined cores are
   in the end, but double check for -1 for offlined cpus at other places */

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>

#include <cpuidle.h>

/* CPU topology/hierarchy parsing ******************/

pan='2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='6136c8fe53a8a28906e090ddd8914f9846eb8df8'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/ctimap.c'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/pci/ctxfi/ctimap.c?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/pci/ctxfi/ctimap.c?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/pci/ctxfi/ctimap.c?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/ctimap.c'>
<input type='hidden' name='id' value='6136c8fe53a8a28906e090ddd8914f9846eb8df8'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>pci</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>ctxfi</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/ctimap.c?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8'>ctimap.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/pci/ctxfi/ctimap.c?id=6136c8fe53a8a28906e090ddd8914f9846eb8df8&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>