Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1215532

Re: [PATCH] perf/x86/intel/pt: Export cpu frequency ratios needed by PT decoders

From Andi Kleen <andi@firstfloor.org>
Newsgroups linux.kernel
Subject Re: [PATCH] perf/x86/intel/pt: Export cpu frequency ratios needed by PT decoders
Date 2015-08-28 21:40 +0200
Message-ID <q2xFg-4lL-13@gated-at.bofh.it> (permalink)
References <q26Yq-828-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Alexander Shishkin <alexander.shishkin@linux.intel.com> writes:
> +		return sprintf(page, "%lu\n", val);
> +	case 1:
> +		cpuid(0x15, &eax, &ebx, &ecx, &edx);

Surely this needs to be protected by a cpuid level check?
Broadwell for once doesn't have CPUID 0x15.

-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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] perf/x86/intel/pt: Export cpu frequency ratios needed by PT decoders Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-08-27 17:10 +0200
  Re: [PATCH] perf/x86/intel/pt: Export cpu frequency ratios needed by PT decoders Andi Kleen <andi@firstfloor.org> - 2015-08-28 21:40 +0200
    Re: [PATCH] perf/x86/intel/pt: Export cpu frequency ratios needed by PT decoders Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-08-31 15:00 +0200
      Re: [PATCH] perf/x86/intel/pt: Export cpu frequency ratios needed by  PT decoders Andi Kleen <andi@firstfloor.org> - 2015-08-31 22:10 +0200

csiph-web