seq_printf(m, "physical id\t: %d\n", phys_proc_id[c - cpu_data]); seq_printf(m, "siblings\t: %d\n", c->x86_num_cores * smp_num_siblings); 
if (smp_num_siblings * c->x86_num_cores > 1) { int cpu = c - cpu_data; seq_printf(m, "physical id\t: %d\n", phys_proc_id[cpu]); seq_printf(m, "siblings\t: %d\n", c->x86_num_cores * smp_num_siblings); } 
static int show_cpuinfo(struct seq_file *m, void *v){	struct cpuinfo_x86 *c = v;	/* 	 * These flag bits must match the definitions in <asm/cpufeature.h>.	 * NULL means this bit is undefined or reserved; either way it doesn't	 * have meaning as far as Linux is concerned.  Note that it's important	 * to realize there is a difference between this table and CPUID -- if	 * applications want to get the raw CPUID data, they should access	 * /dev/cpu/<cpu_nr>/cpuid instead.	 */	static char *x86_cap_flags[] = {		/* Intel-defined */	        "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",	        "cx8", "apic", NULL, "sep", "mtrr", "pge", "mca", "cmov",	        "pat", "pse36", "pn", "clflush", NULL, "dts", "acpi", "mmx",	        "fxsr", "sse", "sse2", "ss", "ht", "tm", "ia64", NULL,		/* AMD-defined */		"pni", NULL, NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, "syscall", NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, "nx", NULL, "mmxext", NULL,		NULL, "fxsr_opt", NULL, NULL, NULL, "lm", "3dnowext", "3dnow",		/* Transmeta-defined */		"recovery", "longrun", NULL, "lrti", NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		/* Other (Linux-defined) */		"cxmmx", "k6_mtrr", "cyrix_arr", "centaur_mcr", NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		/* Intel-defined (#2) */		"pni", NULL, NULL, "monitor", "ds_cpl", NULL, NULL, "est",		"tm2", NULL, "cid", NULL, NULL, "cx16", "xtpr", NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		/* AMD-defined (#2) */		"lahf_lm", "cmp_legacy", NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,		NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL	};	static char *x86_power_flags[] = { 		"ts",	/* temperature sensor */		"fid",  /* frequency id control */		"vid",  /* voltage id control */		"ttp",  /* thermal trip */		"tm",		"stc"	};#ifdef CONFIG_SMP	if (!cpu_online(c-cpu_data))		return 0;#endif	seq_printf(m,"processor\t: %u\n"		     "vendor_id\t: %s\n"		     "cpu family\t: %d\n"		     "model\t\t: %d\n"		     "model name\t: %s\n",		     (unsigned)(c-cpu_data),		     c->x86_vendor_id[0] ? c->x86_vendor_id : "unknown",		     c->x86,		     (int)c->x86_model,		     c->x86_model_id[0] ? c->x86_model_id : "unknown");		if (c->x86_mask || c->cpuid_level >= 0)		seq_printf(m, "stepping\t: %d\n", c->x86_mask);	else		seq_printf(m, "stepping\t: unknown\n");		if (cpu_has(c,X86_FEATURE_TSC)) {		seq_printf(m, "cpu MHz\t\t: %u.%03u\n",			     cpu_khz / 1000, (cpu_khz % 1000));	}	/* Cache size */	if (c->x86_cache_size >= 0) 		seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size);	#ifdef CONFIG_SMP	seq_printf(m, "physical id\t: %d\n", phys_proc_id[c - cpu_data]);	seq_printf(m, "siblings\t: %d\n", c->x86_num_cores * smp_num_siblings);#endif		seq_printf(m,	        "fpu\t\t: yes\n"	        "fpu_exception\t: yes\n"	        "cpuid level\t: %d\n"	        "wp\t\t: yes\n"	        "flags\t\t:",		   c->cpuid_level);	{ 		int i; 		for ( i = 0 ; i < 32*NCAPINTS ; i++ )			if ( test_bit(i, &c->x86_capability) &&			     x86_cap_flags[i] != NULL )				seq_printf(m, " %s", x86_cap_flags[i]);	}			seq_printf(m, "\nbogomips\t: %lu.%02lu\n",		   c->loops_per_jiffy/(500000/HZ),		   (c->loops_per_jiffy/(5000/HZ)) % 100);	if (c->x86_tlbsize > 0) 		seq_printf(m, "TLB size\t: %d 4K pages\n", c->x86_tlbsize);	seq_printf(m, "clflush size\t: %d\n", c->x86_clflush_size);	seq_printf(m, "cache_alignment\t: %d\n", c->x86_cache_alignment);	seq_printf(m, "address sizes\t: %u bits physical, %u bits virtual\n", 		   c->x86_phys_bits, c->x86_virt_bits);	seq_printf(m, "power management:");	{		unsigned i;		for (i = 0; i < 32; i++) 			if (c->x86_power & (1 << i)) {				if (i < ARRAY_SIZE(x86_power_flags))					seq_printf(m, " %s", x86_power_flags[i]);				else					seq_printf(m, " [%d]", i);			}	}	seq_printf(m, "\n");	if (c->x86_num_cores > 1)		seq_printf(m, "cpu cores\t: %d\n", c->x86_num_cores);	seq_printf(m, "\n\n"); 	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/db4686812835a497d6f5de1e6cf6e8010a3fc0c7/setup.c/clean/arch/x86_64/kernel/setup.c