2013-03-14 12:35:13 -06:00
|
|
|
// Copyright 2012 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "runtime.h"
|
|
|
|
#include "defs_GOOS_GOARCH.h"
|
|
|
|
#include "os_GOOS.h"
|
2014-09-04 21:05:18 -06:00
|
|
|
#include "textflag.h"
|
2013-03-14 12:35:13 -06:00
|
|
|
|
|
|
|
void
|
|
|
|
runtime·checkgoarm(void)
|
|
|
|
{
|
|
|
|
// TODO(minux)
|
|
|
|
}
|
|
|
|
|
2013-08-12 14:47:18 -06:00
|
|
|
#pragma textflag NOSPLIT
|
2013-03-14 12:35:13 -06:00
|
|
|
int64
|
|
|
|
runtime·cputicks(void)
|
|
|
|
{
|
|
|
|
// Currently cputicks() is used in blocking profiler and to seed runtime·fastrand1().
|
|
|
|
// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
|
|
|
|
// TODO: need more entropy to better seed fastrand1.
|
|
|
|
return runtime·nanotime();
|
|
|
|
}
|