aboutsummaryrefslogtreecommitdiffstats
path: root/erts/include/internal
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-08-16 19:38:33 +0200
committerRickard Green <[email protected]>2010-08-18 18:00:34 +0200
commit1b273b618002d65159453fdfb9520a9476e4423a (patch)
tree1bb787ea400e726e575237274e347bd928787e84 /erts/include/internal
parentbdfd2aaa1d402b3dd393a7820432f8f76e248ee1 (diff)
downloadotp-1b273b618002d65159453fdfb9520a9476e4423a.tar.gz
otp-1b273b618002d65159453fdfb9520a9476e4423a.tar.bz2
otp-1b273b618002d65159453fdfb9520a9476e4423a.zip
Make it possible to reread and update detected CPU information
Calling erlang:system_info/1 with the new argument 'update_cpu_info' will make the runtime system reread and update the internally stored CPU information. For more information see the documentation of erlang:system_info(update_cpu_info).
Diffstat (limited to 'erts/include/internal')
-rw-r--r--erts/include/internal/erl_misc_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/include/internal/erl_misc_utils.h b/erts/include/internal/erl_misc_utils.h
index 6b875ff824..dda2cab5c6 100644
--- a/erts/include/internal/erl_misc_utils.h
+++ b/erts/include/internal/erl_misc_utils.h
@@ -1,7 +1,7 @@
/*
* %CopyrightBegin%
*
- * Copyright Ericsson AB 2006-2009. All Rights Reserved.
+ * Copyright Ericsson AB 2006-2010. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
@@ -34,7 +34,7 @@ typedef struct {
erts_cpu_info_t *erts_cpu_info_create(void);
void erts_cpu_info_destroy(erts_cpu_info_t *cpuinfo);
-void erts_cpu_info_update(erts_cpu_info_t *cpuinfo);
+int erts_cpu_info_update(erts_cpu_info_t *cpuinfo);
int erts_get_cpu_configured(erts_cpu_info_t *cpuinfo);
int erts_get_cpu_online(erts_cpu_info_t *cpuinfo);
int erts_get_cpu_available(erts_cpu_info_t *cpuinfo);