mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-02-20 11:38:25 -06:00
Separate benchmark from smbus/smbios and add a separate flag to enable/disable it
This commit is contained in:
parent
4a20637f8e
commit
ee80684c4f
@ -94,6 +94,7 @@ bool enable_temperature = false;
|
||||
bool enable_trace = false;
|
||||
|
||||
bool enable_sm = true;
|
||||
bool enable_bench = true;
|
||||
|
||||
bool pause_at_start = false;
|
||||
|
||||
@ -118,6 +119,8 @@ static void parse_option(const char *option, const char *params)
|
||||
}
|
||||
} else if (strncmp(option, "nopause", 8) == 0) {
|
||||
pause_at_start = false;
|
||||
} else if (strncmp(option, "nobench", 8) == 0) {
|
||||
enable_bench = false;
|
||||
} else if (strncmp(option, "powersave", 10) == 0) {
|
||||
if (strncmp(params, "off", 4) == 0) {
|
||||
power_save = POWER_SAVE_OFF;
|
||||
@ -267,7 +270,7 @@ static bool set_all_tests(bool enabled)
|
||||
|
||||
static bool add_or_remove_test(bool add)
|
||||
{
|
||||
|
||||
|
||||
display_input_message(POP_R+14, "Enter test #");
|
||||
int n = read_value(POP_R+14, POP_LM+12, 2, 0);
|
||||
if (n < 0 || n >= NUM_TEST_PATTERNS) {
|
||||
@ -534,7 +537,7 @@ static bool set_all_cpus(cpu_state_t state, int display_offset)
|
||||
|
||||
static bool add_or_remove_cpu(bool add, int display_offset)
|
||||
{
|
||||
|
||||
|
||||
display_input_message(POP_R+16, "Enter CPU #");
|
||||
int n = read_value(POP_R+16, POP_LM+11, 2, 0);
|
||||
if (n < 1 || n >= num_available_cpus) {
|
||||
|
@ -49,6 +49,7 @@ extern bool enable_temperature;
|
||||
extern bool enable_trace;
|
||||
|
||||
extern bool enable_sm;
|
||||
extern bool enable_bench;
|
||||
|
||||
extern bool pause_at_start;
|
||||
|
||||
|
@ -210,9 +210,7 @@ static void global_init(void)
|
||||
|
||||
pci_init();
|
||||
|
||||
if(enable_sm) {
|
||||
membw_init();
|
||||
}
|
||||
membw_init();
|
||||
|
||||
smbios_init();
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "tsc.h"
|
||||
|
||||
#include "boot.h"
|
||||
#include "config.h"
|
||||
#include "pmem.h"
|
||||
#include "vmem.h"
|
||||
#include "memsize.h"
|
||||
@ -1088,5 +1089,7 @@ void cpuinfo_init(void)
|
||||
|
||||
void membw_init(void)
|
||||
{
|
||||
measure_memory_bandwidth();
|
||||
if(enable_bench) {
|
||||
measure_memory_bandwidth();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user