diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2002-08-19 23:56:01 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2002-08-19 23:56:01 +0000 |
| commit | f457830b8e6b4cda7b505eae88b3af9759adfe72 (patch) | |
| tree | 0105941701b7263c1e07ac5a2b24c21e79160fed /sys/dev/syscons | |
| parent | 80ee2492c5c36e1be2c3ea2461c6ca57e7713f4e (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons')
| -rw-r--r-- | sys/dev/syscons/schistory.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/dev/syscons/schistory.c b/sys/dev/syscons/schistory.c index 3df7682d6ef4..30cbdfd0af41 100644 --- a/sys/dev/syscons/schistory.c +++ b/sys/dev/syscons/schistory.c @@ -29,7 +29,6 @@ * $FreeBSD$ */ -#include "sc.h" #include "opt_syscons.h" #ifndef SC_NO_HISTORY @@ -46,17 +45,27 @@ #include <dev/syscons/syscons.h> +/* + * XXX Placeholder. + * This calculations should be dynamically scaled by number of seperate sc + * devices. A base value of 'extra_history_size' should be defined for + * each syscons unit, and added and subtracted from the dynamic + * 'extra_history_size' as units are added and removed. This way, each time + * a new syscons unit goes online, extra_history_size is automatically bumped. + */ +#define MAXSC 1 + #if !defined(SC_MAX_HISTORY_SIZE) -#define SC_MAX_HISTORY_SIZE (1000 * MAXCONS * NSC) +#define SC_MAX_HISTORY_SIZE (1000 * MAXCONS * MAXSC) #endif #if !defined(SC_HISTORY_SIZE) #define SC_HISTORY_SIZE (ROW * 4) #endif -#if (SC_HISTORY_SIZE * MAXCONS * NSC) > SC_MAX_HISTORY_SIZE +#if (SC_HISTORY_SIZE * MAXCONS * MAXSC) > SC_MAX_HISTORY_SIZE #undef SC_MAX_HISTORY_SIZE -#define SC_MAX_HISTORY_SIZE (SC_HISTORY_SIZE * MAXCONS * NSC) +#define SC_MAX_HISTORY_SIZE (SC_HISTORY_SIZE * MAXCONS * MAXSC) #endif /* local variables */ |
