Skip to content

Commit

Permalink
Merge pull request prometheus#288 from pgier/cpuinfo-multi-platform-b…
Browse files Browse the repository at this point in the history
…ug-fixes

cpuinfo: fix platform constraints
  • Loading branch information
pgier authored May 7, 2020
2 parents 52609b4 + e8f8192 commit 62a2467
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpuinfo_amd64.go → cpuinfo_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.

// +build linux
// +build amd64
// +build 386 amd64

package procfs

Expand Down
1 change: 0 additions & 1 deletion cpuinfo_ppc64.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// limitations under the License.

// +build linux
// +build ppc64,ppc64le

package procfs

Expand Down
18 changes: 18 additions & 0 deletions cpuinfo_ppc64le.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2020 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// +build linux

package procfs

var parseCPUInfo = parseCPUInfoPPC
3 changes: 1 addition & 2 deletions cpuinfo_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
// limitations under the License.

// +build linux
// +build s390x

package procfs

var parseCPUInfo = parseCPUInfoS390x
var parseCPUInfo = parseCPUInfoS390X

0 comments on commit 62a2467

Please sign in to comment.